Class HibernateBeanContainer
java.lang.Object
ch.tocco.nice2.persist.core.api.hibernate.HibernateBeanContainer
- All Implemented Interfaces:
org.hibernate.resource.beans.container.spi.BeanContainer
,org.hibernate.service.spi.Stoppable
@Component
public class HibernateBeanContainer
extends Object
implements org.hibernate.resource.beans.container.spi.BeanContainer
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.resource.beans.container.spi.BeanContainer
org.hibernate.resource.beans.container.spi.BeanContainer.LifecycleOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<B> org.hibernate.resource.beans.container.spi.ContainedBean
<B> getBean
(Class<B> beanType, org.hibernate.resource.beans.container.spi.BeanContainer.LifecycleOptions lifecycleOptions, org.hibernate.resource.beans.spi.BeanInstanceProducer fallbackProducer) <B> org.hibernate.resource.beans.container.spi.ContainedBean
<B> getBean
(String name, Class<B> beanType, org.hibernate.resource.beans.container.spi.BeanContainer.LifecycleOptions lifecycleOptions, org.hibernate.resource.beans.spi.BeanInstanceProducer fallbackProducer) <B> void
registerBean
(Class<B> beanClass, B bean) void
stop()
-
Constructor Details
-
HibernateBeanContainer
public HibernateBeanContainer()
-
-
Method Details
-
registerBean
-
getBean
public <B> org.hibernate.resource.beans.container.spi.ContainedBean<B> getBean(Class<B> beanType, org.hibernate.resource.beans.container.spi.BeanContainer.LifecycleOptions lifecycleOptions, org.hibernate.resource.beans.spi.BeanInstanceProducer fallbackProducer) - Specified by:
getBean
in interfaceorg.hibernate.resource.beans.container.spi.BeanContainer
-
getBean
public <B> org.hibernate.resource.beans.container.spi.ContainedBean<B> getBean(String name, Class<B> beanType, org.hibernate.resource.beans.container.spi.BeanContainer.LifecycleOptions lifecycleOptions, org.hibernate.resource.beans.spi.BeanInstanceProducer fallbackProducer) - Specified by:
getBean
in interfaceorg.hibernate.resource.beans.container.spi.BeanContainer
-
stop
public void stop()- Specified by:
stop
in interfaceorg.hibernate.service.spi.Stoppable
-