Package org.infinispan.cdi.common.util
Class ImmutablePassivationCapableBean<T>
java.lang.Object
org.infinispan.cdi.common.util.AbstractImmutableBean<T>
org.infinispan.cdi.common.util.ImmutableBean<T>
org.infinispan.cdi.common.util.ImmutablePassivationCapableBean<T>
- All Implemented Interfaces:
javax.enterprise.context.spi.Contextual<T>,javax.enterprise.inject.spi.Bean<T>,javax.enterprise.inject.spi.BeanAttributes<T>,javax.enterprise.inject.spi.PassivationCapable
public class ImmutablePassivationCapableBean<T>
extends ImmutableBean<T>
implements javax.enterprise.inject.spi.PassivationCapable
A base class for implementing a PassivationCapable Bean. The
attributes are immutable, and collections are defensively copied on
instantiation. It uses the defaults from the specification for properties if
not specified.
This bean delegates it's lifecycle to the callbacks on the provided
ContextualLifecycle.
- Author:
- Stuart Douglas, Pete Muir
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionImmutablePassivationCapableBean(String id, 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, ContextualLifecycle<T> beanLifecycle, String toString) -
Method Summary
Methods inherited from class org.infinispan.cdi.common.util.ImmutableBean
create, destroyMethods inherited from class org.infinispan.cdi.common.util.AbstractImmutableBean
getBeanClass, getInjectionPoints, getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative, isNullable, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.enterprise.inject.spi.Bean
getBeanClass, getInjectionPoints, isNullableMethods inherited from interface javax.enterprise.inject.spi.BeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
-
Constructor Details
-
ImmutablePassivationCapableBean
public ImmutablePassivationCapableBean(String id, 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, ContextualLifecycle<T> beanLifecycle, String toString)
-
-
Method Details
-
getId
- Specified by:
getIdin interfacejavax.enterprise.inject.spi.PassivationCapable
-