Package org.jboss.weld.util
Class ForwardingContext
- java.lang.Object
-
- org.jboss.weld.util.ForwardingContext
-
-
Constructor Summary
Constructors Constructor Description ForwardingContext()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Context
delegate()
boolean
equals(Object obj)
<T> T
get(Contextual<T> contextual)
Return an existing instance of a certain contextual type or a null value.<T> T
get(Contextual<T> contextual, CreationalContext<T> creationalContext)
Return an existing instance of certain contextual type or create a new instance by callingContextual.create(CreationalContext)
and return the new instance.Class<? extends Annotation>
getScope()
Get the scope type of the context object.int
hashCode()
boolean
isActive()
Determines if the context object is active.String
toString()
static Context
unwrap(Context context)
-
-
-
Method Detail
-
delegate
protected abstract Context delegate()
-
getScope
public Class<? extends Annotation> getScope()
Description copied from interface:Context
Get the scope type of the context object.
-
get
public <T> T get(Contextual<T> contextual, CreationalContext<T> creationalContext)
Description copied from interface:Context
Return an existing instance of certain contextual type or create a new instance by callingContextual.create(CreationalContext)
and return the new instance.
-
get
public <T> T get(Contextual<T> contextual)
Description copied from interface:Context
Return an existing instance of a certain contextual type or a null value.
-
isActive
public boolean isActive()
Description copied from interface:Context
Determines if the context object is active.
-
-