Top Description Fields Constructors Methods
org.hibernate.boot.internal

pack-priv Class SessionFactoryObserverForRegistration

extends Object
implements SessionFactoryObserver
Class Inheritance
All Implemented Interfaces
org.hibernate.SessionFactoryObserver, java.io.Serializable
Imports
org.hibernate.SessionFactory, .SessionFactoryObserver, org.hibernate.engine.jndi.spi.JndiService, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.internal.SessionFactoryRegistry

Responsible for registering and de-registering the SessionFactory with the SessionFactoryRegistry.

Implementation Note

This was added in order to clean up the constructor of org.hibernate.internal.SessionFactoryImpl, which was doing too many things.

Author
Gavin King

Field Summary

Modifier and TypeField and Description
private JndiService
private boolean

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
sessionFactoryClosed(SessionFactory
The factory closed.
factory
)

Overrides default org.hibernate.SessionFactoryObserver.sessionFactoryClosed.

Callback to indicate that the given factory has been closed.
public void
sessionFactoryCreated(SessionFactory
The factory initialized.
factory
)

Overrides default org.hibernate.SessionFactoryObserver.sessionFactoryCreated.

Callback to indicate that the given factory has been created and is now ready for use.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

jndiServiceback to summary
private JndiService jndiService
registeredInJndiback to summary
private boolean registeredInJndi

Constructor Detail

SessionFactoryObserverForRegistrationback to summary
pack-priv SessionFactoryObserverForRegistration()

Method Detail

sessionFactoryClosedback to summary
public void sessionFactoryClosed(SessionFactory factory)

Overrides default org.hibernate.SessionFactoryObserver.sessionFactoryClosed.

Doc from org.hibernate.SessionFactoryObserver.sessionFactoryClosed.

Callback to indicate that the given factory has been closed. Care should be taken in how (if at all) the passed factory reference is used since it is closed.

Parameters
factory:SessionFactory

The factory closed.

Annotations
@Override
sessionFactoryCreatedback to summary
public void sessionFactoryCreated(SessionFactory factory)

Overrides default org.hibernate.SessionFactoryObserver.sessionFactoryCreated.

Doc from org.hibernate.SessionFactoryObserver.sessionFactoryCreated.

Callback to indicate that the given factory has been created and is now ready for use.

Parameters
factory:SessionFactory

The factory initialized.

Annotations
@Override