public class CdiSingletonResourceProvider extends CdiResourceProvider
CdiResourceProvider.BeanCreator, CdiResourceProvider.DefaultBeanCreator, CdiResourceProvider.ProvidedInstanceBeanCreator, CdiResourceProvider.PseudoScopedCdiBeanCreator
bean, bm, classLoader, clazz, constructor, context, contextTypes, injections, INSTANCE_KEY, normalScopeCreator, postConstructMethod, preDestroyMethod, webbeansContext
Constructor and Description |
---|
CdiSingletonResourceProvider(java.lang.ClassLoader loader,
java.lang.Class<?> clazz,
java.lang.Object instance,
java.util.Collection<Injection> injectionCollection,
javax.naming.Context initialContext,
WebBeansContext owbCtx) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getInstance(Message m) |
boolean |
isSingleton() |
void |
release() |
void |
releaseInstance(Message m,
java.lang.Object o) |
getClassLoader, getResourceClass
public CdiSingletonResourceProvider(java.lang.ClassLoader loader, java.lang.Class<?> clazz, java.lang.Object instance, java.util.Collection<Injection> injectionCollection, javax.naming.Context initialContext, WebBeansContext owbCtx)
public boolean isSingleton()
isSingleton
in class CdiResourceProvider
public java.lang.Object getInstance(Message m)
getInstance
in class CdiResourceProvider
public void releaseInstance(Message m, java.lang.Object o)
releaseInstance
in class CdiResourceProvider
public void release()