|
||||||||||
| 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(Class<T> type)
Gets a global component instance. |
|
Properties |
getProperties()
|
|
String |
getProperty(String key)
|
|
String |
getProperty(String key,
String defaultValue)
|
|
long |
getStartTime()
|
|
boolean |
hasProperty(String propName)
|
|
|
removeComponent(Class<T> type)
Removes a global component instance. |
|
|
setComponent(Class<T> type,
T component)
Registers a component instance with the client, so it may be reference globally. |
|
Object |
setProperty(String key,
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 Properties getProperties()
public String getProperty(String key)
public String getProperty(String key,
String defaultValue)
public Object setProperty(String key,
String value)
public boolean hasProperty(String propName)
propName - property name
public <T> T getComponent(Class<T> type)
type - the class type of the component - required
IllegalStateException - of the component isn't foundpublic <T> T removeComponent(Class<T> type)
type - the class type of the component - required
public <T> T setComponent(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 | |||||||||