Class CollectionInitializationServiceImpl
java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.interceptor.CollectionInitializationServiceImpl
- All Implemented Interfaces:
CollectionInitializationService
@Component
public class CollectionInitializationServiceImpl
extends Object
implements CollectionInitializationService
This service exists so that
CollectionInitializer
can be accessed from different
classes (instead of directly injecting them into ExtendedInitializeCollectionEventListener
).-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCollectionInitializer
(Object owner, jakarta.persistence.metamodel.Attribute<?, ?> attribute) void
setCollectionInitializers
(List<CollectionInitializer> collectionInitializers)
-
Constructor Details
-
CollectionInitializationServiceImpl
public CollectionInitializationServiceImpl()
-
-
Method Details
-
setCollectionInitializers
@Autowired public void setCollectionInitializers(List<CollectionInitializer> collectionInitializers) -
getCollectionInitializer
public CollectionInitializer getCollectionInitializer(Object owner, jakarta.persistence.metamodel.Attribute<?, ?> attribute) - Specified by:
getCollectionInitializer
in interfaceCollectionInitializationService
- Returns:
- a
CollectionInitializer
for the given collection
-