Package org.hibernate.resource.beans.spi
Class ManagedBeanRegistryInitiator
- java.lang.Object
-
- org.hibernate.resource.beans.spi.ManagedBeanRegistryInitiator
-
- All Implemented Interfaces:
StandardServiceInitiator<ManagedBeanRegistry>
,ServiceInitiator<ManagedBeanRegistry>
public class ManagedBeanRegistryInitiator extends java.lang.Object implements StandardServiceInitiator<ManagedBeanRegistry>
Hibernate's standard initializer for the ManagedBeanRegistry service. Produces aManagedBeanRegistryImpl
-
-
Field Summary
Fields Modifier and Type Field Description static ManagedBeanRegistryInitiator
INSTANCE
Singleton access
-
Constructor Summary
Constructors Constructor Description ManagedBeanRegistryInitiator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.Class
cdiBeanManagerClass(ClassLoaderService classLoaderService)
java.lang.Class<ManagedBeanRegistry>
getServiceInitiated()
Obtains the service role initiated by this initiator.ManagedBeanRegistry
initiateService(java.util.Map configurationValues, ServiceRegistryImplementor serviceRegistry)
Initiates the managed service.
-
-
-
Field Detail
-
INSTANCE
public static final ManagedBeanRegistryInitiator INSTANCE
Singleton access
-
-
Method Detail
-
getServiceInitiated
public java.lang.Class<ManagedBeanRegistry> getServiceInitiated()
Description copied from interface:ServiceInitiator
Obtains the service role initiated by this initiator. Should be unique within a registry- Specified by:
getServiceInitiated
in interfaceServiceInitiator<ManagedBeanRegistry>
- Returns:
- The service role.
-
initiateService
public ManagedBeanRegistry initiateService(java.util.Map configurationValues, ServiceRegistryImplementor serviceRegistry)
Description copied from interface:StandardServiceInitiator
Initiates the managed service.- Specified by:
initiateService
in interfaceStandardServiceInitiator<ManagedBeanRegistry>
- Parameters:
configurationValues
- The configuration values in effectserviceRegistry
- The service registry. Can be used to locate services needed to fulfill initiation.- Returns:
- The initiated service.
-
cdiBeanManagerClass
public static java.lang.Class cdiBeanManagerClass(ClassLoaderService classLoaderService) throws ClassLoadingException
- Throws:
ClassLoadingException
-
-