org.hibernate.service.jndi.internal
Class JndiServiceInitiator

java.lang.Object
  extended by org.hibernate.service.jndi.internal.JndiServiceInitiator
All Implemented Interfaces:
BasicServiceInitiator<JndiService>, ServiceInitiator<JndiService>

public class JndiServiceInitiator
extends Object
implements BasicServiceInitiator<JndiService>

Standard initiator for the standard JndiService service


Field Summary
static JndiServiceInitiator INSTANCE
           
 
Constructor Summary
JndiServiceInitiator()
           
 
Method Summary
 Class<JndiService> getServiceInitiated()
          Obtains the service role initiated by this initiator.
 JndiService initiateService(Map configurationValues, ServiceRegistryImplementor registry)
          Initiates the managed service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final JndiServiceInitiator INSTANCE
Constructor Detail

JndiServiceInitiator

public JndiServiceInitiator()
Method Detail

getServiceInitiated

public Class<JndiService> getServiceInitiated()
Description copied from interface: ServiceInitiator
Obtains the service role initiated by this initiator. Should be unique within a registry

Specified by:
getServiceInitiated in interface ServiceInitiator<JndiService>
Returns:
The service role.

initiateService

public JndiService initiateService(Map configurationValues,
                                   ServiceRegistryImplementor registry)
Description copied from interface: BasicServiceInitiator
Initiates the managed service.

Specified by:
initiateService in interface BasicServiceInitiator<JndiService>
Parameters:
configurationValues - The configuration values in effect
registry - The service registry. Can be used to locate services needed to fulfill initiation.
Returns:
The initiated service.


Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.