Class BusinessUnitEntityCreationListener
java.lang.Object
ch.tocco.nice2.businessunit.impl.intercept.BusinessUnitInterceptorHelper
ch.tocco.nice2.businessunit.impl.intercept.BusinessUnitEntityCreationListener
- All Implemented Interfaces:
EntityCreationListener
@Component
public class BusinessUnitEntityCreationListener
extends BusinessUnitInterceptorHelper
implements EntityCreationListener
Sets the current
BusinessUnit
to newly created entities (if required).-
Field Summary
Fields inherited from class ch.tocco.nice2.businessunit.impl.intercept.BusinessUnitInterceptorHelper
businessUnitManager
-
Constructor Summary
ConstructorDescriptionBusinessUnitEntityCreationListener
(org.slf4j.Logger log, BusinessUnitManager businessUnitManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when an new entity instance is created by the factory.void
entityLoaded
(Object entity, boolean isProxyInitialization) Called when an entity instance is created for a row loaded from the database.Methods inherited from class ch.tocco.nice2.businessunit.impl.intercept.BusinessUnitInterceptorHelper
requiresBusinessUnitHandling
-
Constructor Details
-
BusinessUnitEntityCreationListener
public BusinessUnitEntityCreationListener(org.slf4j.Logger log, BusinessUnitManager businessUnitManager)
-
-
Method Details
-
entityCreated
Description copied from interface:EntityCreationListener
Called when an new entity instance is created by the factory.- Specified by:
entityCreated
in interfaceEntityCreationListener
-
entityLoaded
Description copied from interface:EntityCreationListener
Called when an entity instance is created for a row loaded from the database.- Specified by:
entityLoaded
in interfaceEntityCreationListener
-