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:
Contextual<T>,Bean<T>,BeanAttributes<T>,PassivationCapable
public class ImmutablePassivationCapableBean<T> extends ImmutableBean<T> implements PassivationCapable
A base class for implementing a
PassivationCapableBean. 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:
ImmutableBean,BeanBuilder
-
-
Constructor Summary
Constructors Constructor Description 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<InjectionPoint> injectionPoints, ContextualLifecycle<T> beanLifecycle, String toString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetId()A string that uniquely identifies the instance ofBeanorContextual.-
Methods inherited from class org.infinispan.cdi.common.util.ImmutableBean
create, destroy
-
Methods inherited from class org.infinispan.cdi.common.util.AbstractImmutableBean
getBeanClass, getInjectionPoints, getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative, isNullable, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jakarta.enterprise.inject.spi.Bean
getBeanClass, getInjectionPoints
-
Methods inherited from interface jakarta.enterprise.inject.spi.BeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
-
-
-
-
Constructor Detail
-
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<InjectionPoint> injectionPoints, ContextualLifecycle<T> beanLifecycle, String toString)
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:PassivationCapableA string that uniquely identifies the instance ofBeanorContextual. It is recommended that the string contain the package name of the class that implementsBeanorContextual.- Specified by:
getIdin interfacePassivationCapable- Returns:
- a unique identifier for the
BeanorContextual
-
-