Package org.jboss.weld.serialization
Class BeanHolder<T>
- java.lang.Object
-
- org.jboss.weld.serialization.AbstractSerializableHolder<Bean<T>>
-
- org.jboss.weld.serialization.BeanHolder<T>
-
- Type Parameters:
T- bean type
- All Implemented Interfaces:
Serializable,SerializableHolder<Bean<T>>
public class BeanHolder<T> extends AbstractSerializableHolder<Bean<T>>
Serializable holder that keeps reference to a bean and is capable of reloading the reference on deserialization.- Author:
- Jozef Hartinger
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BeanHolder(String contextId, Bean<T> bean)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Bean<T>initialize()static <T> BeanHolder<T>of(String contextId, Bean<T> bean)-
Methods inherited from class org.jboss.weld.serialization.AbstractSerializableHolder
get, readResolve
-
-
-
-
Method Detail
-
of
public static <T> BeanHolder<T> of(String contextId, Bean<T> bean)
-
initialize
protected Bean<T> initialize()
- Specified by:
initializein classAbstractSerializableHolder<Bean<T>>
-
-