public static class EntityManagerFactoryBuilderImpl.ServiceRegistryCloser extends Object implements SessionFactoryObserver
Modifier and Type | Field and Description |
---|---|
static EntityManagerFactoryBuilderImpl.ServiceRegistryCloser |
INSTANCE
Singleton access
|
Constructor and Description |
---|
ServiceRegistryCloser() |
Modifier and Type | Method and Description |
---|---|
void |
sessionFactoryClosed(SessionFactory sessionFactory)
Callback to indicate that the given factory has been closed.
|
void |
sessionFactoryCreated(SessionFactory sessionFactory)
Callback to indicate that the given factory has been created and is now ready for use.
|
public static final EntityManagerFactoryBuilderImpl.ServiceRegistryCloser INSTANCE
public void sessionFactoryCreated(SessionFactory sessionFactory)
SessionFactoryObserver
sessionFactoryCreated
in interface SessionFactoryObserver
sessionFactory
- The factory initialized.public void sessionFactoryClosed(SessionFactory sessionFactory)
SessionFactoryObserver
sessionFactoryClosed
in interface SessionFactoryObserver
sessionFactory
- The factory closed.Copyright © 2016 JBoss by Red Hat. All rights reserved.