|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
NamingContext
is a specific sort of
naming context
used to
create and manage names of type Identifier
.
There is no generic
export
method defined on NamingContext
, and the
resolve
method is defined on Identifier
.
Method Summary | |
Identifier |
decode(byte[] data,
int offset,
int length)
Decodes an identifier from a buffer portion. |
Identifier |
decode(UnMarshaller u)
Decodes an identifier from the provided unmarshaller. |
Identifier |
export(java.lang.Object itf,
org.objectweb.jonathan.apis.kernel.Context hints)
Creates a new identifier for the object interface designated by the itf parameter. |
Method Detail |
public Identifier export(java.lang.Object itf, org.objectweb.jonathan.apis.kernel.Context hints) throws ExportException, org.objectweb.jonathan.apis.kernel.JonathanException
resolve
method on the returned identifier should
return tt>id.
itf
- an interface referencehints
- additional information;
ExportException
- if an error occurs in the export process;
org.objectweb.jonathan.apis.kernel.JonathanException
- if something else goes wrong.naming_context.export(org.objectweb.jonathan.model.name)
public Identifier decode(byte[] data, int offset, int length) throws org.objectweb.jonathan.apis.kernel.JonathanException
Since identifiers are likely to be transmitted on the net, they may have to be
encoded and decoded. The encoding
method is borne
by the Identifier
interface, but the decoding methods must
be borne by each naming context. This method creates an identifier (associated
with the target naming context), from the length
bytes of
data
starting at offset offset
.
data
- the byte array to read the encoded identifier from;offset
- offset of the first byte of the encoding;length
- length of the encoding;
org.objectweb.jonathan.apis.kernel.JonathanException
- if something goes wrong.public Identifier decode(UnMarshaller u) throws org.objectweb.jonathan.apis.kernel.JonathanException
u
- an unmarhaller;
org.objectweb.jonathan.apis.kernel.JonathanException
- if something goes wrong.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |