org.objectweb.jonathan.binding.api
Interface NamingContext
- EBinder, JDomain, MinimalAdapter, SingleOAdapter
public interface NamingContext
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
.
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(Object itf, Context hints) - Creates a new identifier for the object interface designated by the
itf parameter.
|
decode
public Identifier decode(byte[] data,
int offset,
int length)
throws JonathanException
Decodes an identifier from a buffer portion.
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;
- a decoded identifier;
decode
public Identifier decode(UnMarshaller u)
throws JonathanException
Decodes an identifier from the provided unmarshaller.
u
- an unmarhaller;
- an identifier managed by the target naming context;
export
public Identifier export(Object itf,
Context hints)
throws ExportException,
JonathanException
Creates a new identifier for the object interface designated by the
itf parameter. Note that calling the
resolve
method on the returned identifier should
return tt>id.
itf
- an interface referencehints
- additional information;
- an identifier managed by the target naming context.
ExportException
- if an error occurs in the export process;
org.objectweb.jonathan.model.naming_context.export(org.objectweb.jonathan.model.name)