|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openejb.client.ClientInstance
public class ClientInstance
| Method Summary | ||
|---|---|---|
static ClientInstance |
get()
|
|
|
getComponent(java.lang.Class<T> type)
Gets a global component instance. |
|
java.util.Properties |
getProperties()
|
|
java.lang.String |
getProperty(java.lang.String key)
|
|
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
|
|
long |
getStartTime()
|
|
boolean |
hasProperty(java.lang.String propName)
|
|
|
removeComponent(java.lang.Class<T> type)
Removes a global component instance. |
|
|
setComponent(java.lang.Class<T> type,
T component)
Registers a component instance with the client, so it may be reference globally. |
|
java.lang.Object |
setProperty(java.lang.String key,
java.lang.String value)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public long getStartTime()
public java.util.Properties getProperties()
public java.lang.String getProperty(java.lang.String key)
public java.lang.String getProperty(java.lang.String key,
java.lang.String defaultValue)
public java.lang.Object setProperty(java.lang.String key,
java.lang.String value)
public boolean hasProperty(java.lang.String propName)
propName - property name
public <T> T getComponent(java.lang.Class<T> type)
type - the class type of the component - required
java.lang.IllegalStateException - of the component isn't foundpublic <T> T removeComponent(java.lang.Class<T> type)
type - the class type of the component - required
public <T> T setComponent(java.lang.Class<T> type,
T component)
type - the class type of the component - requiredcomponent - the component instancepublic static ClientInstance get()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||