Class AbstractInjectingFactory<T extends org.hibernate.service.spi.ServiceRegistryAwareService>

java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.AbstractInjectingFactory<T>
All Implemented Interfaces:
Serializable, org.hibernate.service.spi.ServiceRegistryAwareService
Direct Known Subclasses:
InjectingPersisterFactory

public abstract class AbstractInjectingFactory<T extends org.hibernate.service.spi.ServiceRegistryAwareService> extends Object implements org.hibernate.service.spi.ServiceRegistryAwareService, Serializable
This abstract impl delegates object creation and then injects services into the instance if a suitable setter is found. The available services for injection are passed in the constructor.
See Also:
  • Field Details

    • delegate

      protected final T extends org.hibernate.service.spi.ServiceRegistryAwareService delegate
    • services

      protected final Map<Class,Object> services
  • Constructor Details

    • AbstractInjectingFactory

      public AbstractInjectingFactory(Map<Class,Object> services, T delegate)
  • Method Details

    • getBeanInfo

      protected BeanInfo getBeanInfo(Class instanceClass)
    • injectServices

      public void injectServices(org.hibernate.service.spi.ServiceRegistryImplementor serviceRegistry)
      Specified by:
      injectServices in interface org.hibernate.service.spi.ServiceRegistryAwareService