Interface ContextComponent<T>
-
public interface ContextComponent<T>Defines a component that can be attached to the execution context
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static booleanequalsTo(ContextComponent acomp, ContextComponent bcomp)java.lang.StringgetName()nameTgetObject()java.lang.Class<T>getType()default booleanisUseOnce()static <T> ContextComponent<T>with(java.lang.String name, T o, java.lang.Class<T> type)Create a componentstatic <T> ContextComponent<T>with(java.lang.String name, T o, java.lang.Class<T> type, boolean useOnce)Create a component
-
-
-
Method Detail
-
getName
java.lang.String getName()
name
-
getType
java.lang.Class<T> getType()
-
getObject
T getObject()
-
isUseOnce
default boolean isUseOnce()
- Returns:
- true if the component should not be used more than once
-
with
static <T> ContextComponent<T> with(java.lang.String name, T o, java.lang.Class<T> type)
Create a component- Type Parameters:
T-- Parameters:
name-o-type-
-
with
static <T> ContextComponent<T> with(java.lang.String name, T o, java.lang.Class<T> type, boolean useOnce)
Create a component- Type Parameters:
T-- Parameters:
name-o-type-useOnce- true for single use component
-
equalsTo
static boolean equalsTo(ContextComponent acomp, ContextComponent bcomp)
-
-