public class ImmutablePassivationCapableBean<T> extends ImmutableBean<T> implements javax.enterprise.inject.spi.PassivationCapable
| Constructor and Description |
|---|
ImmutablePassivationCapableBean(Class<?> beanClass,
String name,
Set<Annotation> qualifiers,
Class<? extends Annotation> scope,
Set<Class<? extends Annotation>> stereotypes,
Set<Type> types,
boolean alternative,
boolean nullable,
Set<javax.enterprise.inject.spi.InjectionPoint> injectionPoints,
String toString,
ContextualLifecycle<T> lifecycle,
String passivationId)
Create a new, immutable bean.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getId() |
create, destroygetBeanClass, getInjectionPoints, getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative, isNullable, toStringpublic ImmutablePassivationCapableBean(Class<?> beanClass, String name, Set<Annotation> qualifiers, Class<? extends Annotation> scope, Set<Class<? extends Annotation>> stereotypes, Set<Type> types, boolean alternative, boolean nullable, Set<javax.enterprise.inject.spi.InjectionPoint> injectionPoints, String toString, ContextualLifecycle<T> lifecycle, String passivationId)
beanClass - The Bean class, may not be nullname - The bean namequalifiers - The bean's qualifiers, if null, a singleton set of
Default is usedscope - The bean's scope, if null, the default scope of
Dependent is usedstereotypes - The bean's stereotypes, if null, an empty set is usedtypes - The bean's types, if null, the beanClass and Object
will be usedalternative - True if the bean is an alternativenullable - True if the bean is nullableinjectionPoints - the bean's injection points, if null an empty set is usedtoString - the string which should be returned by #BaseImmutableBean.toString()lifecycle - Handler for ImmutableBean.create(javax.enterprise.context.spi.CreationalContext) and
ImmutableBean.destroy(Object, javax.enterprise.context.spi.CreationalContext)passivationId - Passivation bean Id.IllegalArgumentException - if the beanClass is nullpublic String getId()
getId in interface javax.enterprise.inject.spi.PassivationCapableCopyright © 2020 The Apache Software Foundation. All rights reserved.