public class EventListenerServiceInitiator extends java.lang.Object implements SessionFactoryServiceInitiator<EventListenerRegistry>
EventListenerRegistry
Modifier and Type | Field and Description |
---|---|
static EventListenerServiceInitiator |
INSTANCE |
Constructor and Description |
---|
EventListenerServiceInitiator() |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<EventListenerRegistry> |
getServiceInitiated()
Obtains the service role initiated by this initiator.
|
EventListenerRegistry |
initiateService(SessionFactoryImplementor sessionFactory,
SessionFactoryOptions sessionFactoryOptions,
ServiceRegistryImplementor registry)
Initiates the managed service.
|
public static final EventListenerServiceInitiator INSTANCE
public java.lang.Class<EventListenerRegistry> getServiceInitiated()
ServiceInitiator
getServiceInitiated
in interface ServiceInitiator<EventListenerRegistry>
public EventListenerRegistry initiateService(SessionFactoryImplementor sessionFactory, SessionFactoryOptions sessionFactoryOptions, 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.sessionFactoryOptions
- Options specified for building the SessionFactoryregistry
- The service registry. Can be used to locate services needed to fulfill initiation.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.