public interface ScopedObjectFactory
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
KEYMODIFED_TOPIC
EventBroker topic published when key is modified
|
| Modifier and Type | Method and Description |
|---|---|
@NonNull ScopedObjectFactory |
createChild(@NonNull java.lang.String name)
Create a child of the scoped object factory
|
void |
dispose()
Dispose the factory
|
<O> O |
invoke(@NonNull java.lang.Object instance)
Invoke a method annotated with
Invoke |
<C> C |
newInstance(@NonNull java.lang.Class<C> c)
Create a new instance of the class
|
<O> void |
put(@NonNull java.lang.Class<O> key,
O value)
Push a new value
|
void |
put(@NonNull java.lang.String key,
@NonNull java.lang.Object value)
Push a new value
|
static final java.lang.String KEYMODIFED_TOPIC
<C> C newInstance(@NonNull java.lang.Class<C> c)
c - the class@NonNull ScopedObjectFactory createChild(@NonNull java.lang.String name)
name - the namevoid put(@NonNull java.lang.String key,
@NonNull java.lang.Object value)
key - the keyvalue - the value<O> void put(@NonNull java.lang.Class<O> key,
O value)
key - the keyvalue - the value<O> O invoke(@NonNull java.lang.Object instance)
throws java.lang.IllegalStateException
Invokeinstance - the instance on which the method is invokedjava.lang.IllegalStateException - in case there's no method that could be invokedvoid dispose()