public class EventListenerServiceInitiator extends Object implements SessionFactoryServiceInitiator<EventListenerRegistry>
EventListenerRegistry
Modifier and Type | Field and Description |
---|---|
static EventListenerServiceInitiator |
INSTANCE |
Constructor and Description |
---|
EventListenerServiceInitiator() |
Modifier and Type | Method and Description |
---|---|
Class<EventListenerRegistry> |
getServiceInitiated()
Obtains the service role initiated by this initiator.
|
EventListenerRegistry |
initiateService(SessionFactoryImplementor sessionFactory,
Configuration configuration,
ServiceRegistryImplementor registry)
Initiates the managed service.
|
EventListenerRegistry |
initiateService(SessionFactoryImplementor sessionFactory,
MetadataImplementor metadata,
ServiceRegistryImplementor registry)
Initiates the managed service.
|
public static final EventListenerServiceInitiator INSTANCE
public Class<EventListenerRegistry> getServiceInitiated()
ServiceInitiator
getServiceInitiated
in interface ServiceInitiator<EventListenerRegistry>
public EventListenerRegistry initiateService(SessionFactoryImplementor sessionFactory, Configuration configuration, ServiceRegistryImplementor registry)
SessionFactoryServiceInitiator
initiateService
in interface SessionFactoryServiceInitiator<EventListenerRegistry>
sessionFactory
- The session factory. Note the the session factory is still in flux; care needs to be taken
in regards to what you call.configuration
- The configuration.registry
- The service registry. Can be used to locate services needed to fulfill initiation.public EventListenerRegistry initiateService(SessionFactoryImplementor sessionFactory, MetadataImplementor metadata, ServiceRegistryImplementor registry)
SessionFactoryServiceInitiator
initiateService
in interface SessionFactoryServiceInitiator<EventListenerRegistry>
sessionFactory
- The session factory. Note the the session factory is still in flux; care needs to be taken
in regards to what you call.metadata
- The configuration.registry
- The service registry. Can be used to locate services needed to fulfill initiation.Copyright © 2018 JBoss by Red Hat. All rights reserved.