Class 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:
    ImmutableBean, BeanBuilder
    • Method Detail

      • getId

        public String getId()
        Specified by:
        getId in interface javax.enterprise.inject.spi.PassivationCapable