org.jboss.seam.solder.bean
Class ImmutablePassivationCapableBean<T>

java.lang.Object
  extended by org.jboss.seam.solder.bean.AbstractImmutableBean<T>
      extended by org.jboss.seam.solder.bean.ImmutableBean<T>
          extended by org.jboss.seam.solder.bean.ImmutablePassivationCapableBean<T>
All Implemented Interfaces:
Contextual<T>, Bean<T>, PassivationCapable

public class ImmutablePassivationCapableBean<T>
extends ImmutableBean<T>
implements 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:
ImmutableBean, BeanBuilder

Constructor Summary
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
 String getId()
           
 
Methods inherited from class org.jboss.seam.solder.bean.ImmutableBean
create, destroy
 
Methods inherited from class org.jboss.seam.solder.bean.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 javax.enterprise.inject.spi.Bean
getBeanClass, getInjectionPoints, getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative, isNullable
 

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()
Specified by:
getId in interface PassivationCapable


Copyright © 2011 Seam Framework. All Rights Reserved.