|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.objectweb.jorm.naming.lib.BasicPNamingContext
|
+--org.objectweb.jorm.naming.lib.BasicPBinder
It defines the a basic PBinder which able to be also a PNamingContext.
| Field Summary | |
protected CacheManager |
cache
|
protected PName |
nullPName
|
| Fields inherited from class org.objectweb.jorm.naming.lib.BasicPNamingContext |
ptype |
| Fields inherited from interface org.objectweb.jorm.naming.api.PNameCoder |
CTBYTE, CTBYTEARRAY, CTCHAR, CTCHARARRAY, CTCOMPOSITE, CTDATE, CTINT, CTLONG, CTOBYTE, CTOCHAR, CTOINT, CTOLONG, CTOSHORT, CTSHORT, CTSTRING, CTSYSTEM |
| Constructor Summary | |
BasicPBinder()
|
|
BasicPBinder(PName nullPName)
|
|
| Method Summary | |
void |
bind(PName pn,
PBindingCtrl pb)
It associates a PBinding object with a PName within a PBinder. |
PClassMapping |
getBinderClassMapping()
It returns the PClassMapping for which it is the binder. |
CacheManager |
getCacheManager()
Returns the cache manager associated with this binder. |
java.lang.String |
getClassName()
|
PName |
getNull()
It yields a "null" representation of a name within this naming context. |
PBinding |
lookup(PName pn)
It looks for a PBinding object with the given PName within a PBinder. |
void |
setCacheManager(CacheManager cm)
Assigns the cache manager associated with this binder. |
void |
setNullPName(java.lang.Object o)
It assignes a object which defines a null representation of a name within this naming context. |
void |
setPClassMapping(PClassMapping pcm)
It set the PClassMapping which use this binder slave. |
void |
unbind(PBindingCtrl pb)
It releases the link between the PBinding passed as parameter and its associated DSI represented by the PName referenced by this PBinding. |
| Methods inherited from class org.objectweb.jorm.naming.lib.BasicPNamingContext |
codingSupported, decode, decodeAbstract, decodeByte, decodeChar, decodeCharArray, decodeDate, decodeInt, decodeLong, decodeObyte, decodeOchar, decodeOint, decodeOlong, decodeOshort, decodeShort, encode, encodeAbstract, encodeByte, encodeChar, encodeCharArray, encodeDate, encodeInt, encodeLong, encodeObyte, encodeOchar, encodeOint, encodeOlong, encodeOshort, encodeShort, getPType, setPType, supportCompositeField, supportDynamicComposite, supportStaticComposite |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.objectweb.jorm.naming.api.PNameManager |
export, export, unexport, unexport |
| Methods inherited from interface org.objectweb.jorm.naming.api.PNameCoder |
codingSupported, decode, decodeAbstract, decodeByte, decodeChar, decodeCharArray, decodeDate, decodeInt, decodeLong, decodeObyte, decodeOchar, decodeOint, decodeOlong, decodeOshort, decodeShort, decodeString, encode, encodeAbstract, encodeByte, encodeChar, encodeCharArray, encodeDate, encodeInt, encodeLong, encodeObyte, encodeOchar, encodeOint, encodeOlong, encodeOshort, encodeShort, encodeString, getPType, setPType, supportCompositeField, supportDynamicComposite, supportStaticComposite |
| Methods inherited from interface org.objectweb.jorm.naming.api.PNamingContext |
resolve |
| Field Detail |
protected CacheManager cache
protected PName nullPName
| Constructor Detail |
public BasicPBinder()
public BasicPBinder(PName nullPName)
| Method Detail |
public java.lang.String getClassName()
public PBinding lookup(PName pn)
throws PException
PBinder
lookup in interface PBinderpn - The PName to associate to the PBinding. This PName must be
valid within this binder just like with a naming context.
PException
public void bind(PName pn,
PBindingCtrl pb)
throws PException
PBinder
bind in interface PBinderpn - The PName to associate to the PBinding. This PName must be
valid within this binder just like with a naming context.pb - The PBinding to bind with the given PName; this PBinding
must have been created or initialised by this PBinder.
PExceptionpublic PClassMapping getBinderClassMapping()
PBinder
getBinderClassMapping in interface PBinderpublic void setPClassMapping(PClassMapping pcm)
PBinder
setPClassMapping in interface PBinderpcm - The PClassMapping.
public void unbind(PBindingCtrl pb)
throws PException
PBinder
unbind in interface PBinderpb - The PBinding to unbind.
PExceptionpublic CacheManager getCacheManager()
PBinder
getCacheManager in interface PBinder
public void setCacheManager(CacheManager cm)
throws PException
PBinder
setCacheManager in interface PBindercm - The cache manager.
PExceptionpublic PName getNull()
PNameCoder
getNull in interface PNameCoder
public void setNullPName(java.lang.Object o)
throws PException
PNameCoder
setNullPName in interface PNameCodero - can be a PNameGetter (generic or generated), a pname, or
a simple value (ex: Integer).
PException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||