|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Container
This interface defines methods for Container. A Container manages components, their references, logical processes (which are single theraded) and any customer component builders.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.jtoolkit.essence.utils.Named |
|---|
Named.ContextSource<T>, Named.MapSource<T>, Named.Source<T> |
| Field Summary | |
|---|---|
static java.lang.String |
COMPONENT
Adjective to describe a component. |
static java.lang.String |
CONTAINER_NAME
This property holds the container name for string substitution. |
static java.lang.String |
DEFAULT_CONTAINER
Default value for a component builders's container. |
static java.lang.String |
DEFAULT_CONTAINER_NAME
Default value for a component for the container's name. |
static java.lang.String |
DEFAULT_EXECUTOR
Default value for a component's executor from it logical process.. |
static java.lang.String |
DEFAULT_NAME
Default value for a component's name. |
static java.lang.String |
DEFAULT_PURPOSE
Default value for a component's purpose. |
static java.lang.String |
EXTERNAL
The logical process for threads external to the container. |
static java.lang.String |
PROPERTIES_FILES
This property is examined on startup and these files are loaded into the Containers properties. |
static java.lang.String |
SERVER_HOSTNAME
The property which has the server's hostname. |
static java.lang.String |
SERVER_PORT
If set this port exposes access to the Container objects via NetObject. |
| Fields inherited from interface org.jtoolkit.essence.utils.Closeable |
|---|
CLOSED |
| Fields inherited from interface org.jtoolkit.essence.utils.Named.Source |
|---|
EMPTY_SOURCE |
| Method Summary | ||
|---|---|---|
int |
call(java.lang.String method,
boolean inEachThread)
Call the method on each component. |
|
|
getComponent(java.lang.String componentName,
java.lang.Class<T> type)
Get a component with a target type in mind. |
|
java.util.Set<java.lang.String> |
getNames()
|
|
Named.Source<java.lang.String> |
getProperties()
|
|
Named.Source<java.lang.String> |
getProperties(java.lang.String componentName)
|
|
java.lang.String |
getUrl()
|
|
java.lang.Object |
getValue(java.lang.String componentName)
|
|
java.util.Set<java.lang.String> |
remainingConfig()
|
|
|
removeConfigAs(java.lang.String configName,
java.lang.Class<T> clazz)
This removes and convert a table from the configuration. |
|
| Methods inherited from interface org.jtoolkit.essence.utils.Closeable |
|---|
close, isClosed |
| Methods inherited from interface org.jtoolkit.essence.utils.Named |
|---|
getName |
| Field Detail |
|---|
static final java.lang.String SERVER_HOSTNAME
static final java.lang.String EXTERNAL
static final java.lang.String CONTAINER_NAME
static final java.lang.String PROPERTIES_FILES
static final java.lang.String SERVER_PORT
static final java.lang.String DEFAULT_CONTAINER_NAME
static final java.lang.String DEFAULT_NAME
static final java.lang.String DEFAULT_PURPOSE
static final java.lang.String DEFAULT_EXECUTOR
static final java.lang.String DEFAULT_CONTAINER
static final java.lang.String COMPONENT
| Method Detail |
|---|
int call(@NotNull
java.lang.String method,
boolean inEachThread)
method - to call.inEachThread - if true, the ScheduledExecutorService for the components thread is used, otherwise the method is called using the current thread.
@NotNull java.util.Set<java.lang.String> getNames()
getNames in interface Named.Source<java.lang.Object>
@Nullable
<T> T getComponent(@NotNull
java.lang.String componentName,
@NotNull
java.lang.Class<T> type)
@Nullable
java.lang.Object getValue(@NotNull
java.lang.String componentName)
getValue in interface Named.Source<java.lang.Object>componentName - of the object.
@NotNull Named.Source<java.lang.String> getProperties()
@NotNull
Named.Source<java.lang.String> getProperties(@NotNull
java.lang.String componentName)
@NotNull java.util.Set<java.lang.String> remainingConfig()
@NotNull
<T> T[] removeConfigAs(@NotNull
java.lang.String configName,
@NotNull
java.lang.Class<T> clazz)
throws java.lang.InstantiationException
configName - to obtain.clazz - to convert each record to.
java.lang.InstantiationException@NotNull java.lang.String getUrl()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||