Package org.hibernate.resource.beans.spi
Class ProvidedInstanceManagedBeanImpl<T>
- java.lang.Object
-
- org.hibernate.resource.beans.spi.ProvidedInstanceManagedBeanImpl<T>
-
- All Implemented Interfaces:
ManagedBean<T>
public class ProvidedInstanceManagedBeanImpl<T> extends java.lang.Object implements ManagedBean<T>
ManagedBean implementation for cases where we have been handed an actual instance to use.
-
-
Constructor Summary
Constructors Constructor Description ProvidedInstanceManagedBeanImpl(T instance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<T>getBeanClass()The bean Java typeTgetBeanInstance()The bean reference
-
-
-
Constructor Detail
-
ProvidedInstanceManagedBeanImpl
public ProvidedInstanceManagedBeanImpl(T instance)
-
-
Method Detail
-
getBeanClass
public java.lang.Class<T> getBeanClass()
Description copied from interface:ManagedBeanThe bean Java type- Specified by:
getBeanClassin interfaceManagedBean<T>
-
getBeanInstance
public T getBeanInstance()
Description copied from interface:ManagedBeanThe bean reference- Specified by:
getBeanInstancein interfaceManagedBean<T>
-
-