|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonathan.binding.moa.MinimalAdapter
public class MinimalAdapter
MinimalAdapter is a class of simple object adapters, simply maintaining a table of Java objects.
Field Summary | |
---|---|
static int |
initial_size
Initial size of the object table. |
Constructor Summary | |
---|---|
MinimalAdapter()
Constucts a new MinimalAdapter. |
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(Object impl,
org.objectweb.jonathan.apis.kernel.Context hints)
Exports the provided implementation to the target adapter, and then recursively to the naming context in the context. |
Identifier |
export(Object impl,
org.objectweb.jonathan.apis.kernel.Context hints,
NamingContext nc)
Exports the provided implementation to the target adapter, and then recursively to the provided naming context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int initial_size
Constructor Detail |
---|
public MinimalAdapter()
Method Detail |
---|
public Identifier decode(byte[] data, int offset, int length) throws org.objectweb.jonathan.apis.kernel.JonathanException
decode
in interface NamingContext
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
decode
in interface NamingContext
u
- an unmarhaller;
org.objectweb.jonathan.apis.kernel.JonathanException
- if something goes wrong.public Identifier export(Object impl, org.objectweb.jonathan.apis.kernel.Context hints) throws org.objectweb.jonathan.apis.kernel.JonathanException
The hints parameter must contain a component named
naming_context, of type NamingContext
,
otherwise an export exception is raised.
The returned identifier is
the identifier returned by the export
call on the found naming context. The hints parameter
is passed as an argument in this method call.
export
in interface NamingContext
impl
- an object implementation;hints
- a context containing a NamingContext instance;
org.objectweb.jonathan.apis.kernel.JonathanException
- if something goes wrong.org.objectweb.jonathan.model.naming_context#export(org.objectweb.jonathan.model.name)
public Identifier export(Object impl, org.objectweb.jonathan.apis.kernel.Context hints, NamingContext nc) throws org.objectweb.jonathan.apis.kernel.JonathanException
export
call on nc
;
impl
- an object implementation;hints
- hints passed to the export
method of nc
;nc
- a naming context instance (should not be null);
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 |