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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <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
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HibernateBeanContainer

      public HibernateBeanContainer()
  • Method Details

    • registerBean

      public <B> void registerBean(Class<B> beanClass, B bean)
    • 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 interface org.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 interface org.hibernate.resource.beans.container.spi.BeanContainer
    • stop

      public void stop()
      Specified by:
      stop in interface org.hibernate.service.spi.Stoppable