org.hibernate.engine.spi
Class CacheInitiator

java.lang.Object
  extended by org.hibernate.engine.spi.CacheInitiator
All Implemented Interfaces:
ServiceInitiator<CacheImplementor>, SessionFactoryServiceInitiator<CacheImplementor>

public class CacheInitiator
extends Object
implements SessionFactoryServiceInitiator<CacheImplementor>


Field Summary
static CacheInitiator INSTANCE
           
 
Constructor Summary
CacheInitiator()
           
 
Method Summary
 Class<CacheImplementor> getServiceInitiated()
          Obtains the service role initiated by this initiator.
 CacheImplementor initiateService(SessionFactoryImplementor sessionFactory, Configuration configuration, ServiceRegistryImplementor registry)
          Initiates the managed service.
 CacheImplementor initiateService(SessionFactoryImplementor sessionFactory, MetadataImplementor metadata, 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 CacheInitiator INSTANCE
Constructor Detail

CacheInitiator

public CacheInitiator()
Method Detail

initiateService

public CacheImplementor initiateService(SessionFactoryImplementor sessionFactory,
                                        Configuration configuration,
                                        ServiceRegistryImplementor registry)
Description copied from interface: SessionFactoryServiceInitiator
Initiates the managed service.

Note for implementors: signature is guaranteed to change once redesign of SessionFactory building is complete

Specified by:
initiateService in interface SessionFactoryServiceInitiator<CacheImplementor>
Parameters:
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.
Returns:
The initiated service.

initiateService

public CacheImplementor initiateService(SessionFactoryImplementor sessionFactory,
                                        MetadataImplementor metadata,
                                        ServiceRegistryImplementor registry)
Description copied from interface: SessionFactoryServiceInitiator
Initiates the managed service.

Note for implementors: signature is guaranteed to change once redesign of SessionFactory building is complete

Specified by:
initiateService in interface SessionFactoryServiceInitiator<CacheImplementor>
Parameters:
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.
Returns:
The initiated service.

getServiceInitiated

public Class<CacheImplementor> 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<CacheImplementor>
Returns:
The service role.


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