|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines an object that will act as a container for user-defined resources.
This object is essentially a hashtable with some idiot-proofing added to
prevent java.lang.NullPointerException
s from being thrown in
the event that one of the parameters is null.
The connector object is typically used for retrieving reuseable resources
that are used throughout the life of the process, for example database
connection objects. The objects are contained in a static hashtable that
is accessible by all threads running on the same KJS (JVM). This implies
that some type of synchronization or resource locking is required for
proper behavior when deployed in a multi-threaded concurrent environment.
Another consequence is that objects bound via put
on one KJS
will not be accessible from another KJS.
Each application has its own connector container, thus sharing objects across different deployed applications is not possible.
The object that implements IConnector
is part of the
application's process definition; a handle to the connector can be
obtained via the IProcessDefinition
interface.
Hashtable
,
IProcessDefinition
Method Summary | |
java.lang.Object |
get(java.lang.Object key)
Returns the value object that is associated with the given key. |
java.lang.Object |
get(java.lang.String key)
Returns the value object that is associated with the given key. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Associates the given key object with the given value in this connector object. |
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
Associates the given key string with the given value in this connector object. |
Method Detail |
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
key
- a key objectvalue
- a value object; this object may be anything that
your scripts can useHashtable.put(java.lang.Object, java.lang.Object)
public java.lang.Object put(java.lang.String key, java.lang.Object value)
key
- a key stringvalue
- a value object; this object may be anything that
your scripts can useHashtable.put(java.lang.Object, java.lang.Object)
public java.lang.Object get(java.lang.Object key)
key
- a key objectHashtable.get(java.lang.Object)
public java.lang.Object get(java.lang.String key)
key
- a key stringHashtable.get(java.lang.Object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |