public interface ContextComponent<T>
Modifier and Type | Method and Description |
---|---|
static boolean |
equalsTo(ContextComponent acomp,
ContextComponent bcomp) |
java.lang.String |
getName()
name
|
T |
getObject() |
java.lang.Class<T> |
getType() |
default boolean |
isUseOnce() |
static <T> ContextComponent<T> |
with(java.lang.String name,
T o,
java.lang.Class<T> type)
Create a component
|
static <T> ContextComponent<T> |
with(java.lang.String name,
T o,
java.lang.Class<T> type,
boolean useOnce)
Create a component
|
java.lang.String getName()
java.lang.Class<T> getType()
T getObject()
default boolean isUseOnce()
static <T> ContextComponent<T> with(java.lang.String name, T o, java.lang.Class<T> type)
T
- name
- o
- type
- static <T> ContextComponent<T> with(java.lang.String name, T o, java.lang.Class<T> type, boolean useOnce)
T
- name
- o
- type
- useOnce
- true for single use componentstatic boolean equalsTo(ContextComponent acomp, ContextComponent bcomp)