|
ADK CVS | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The JNDIPersistencePlugin handles the persistent storage needs of the JNDI component of the ARE.
| Field Summary | |
static java.lang.String |
BINDING_PROTECT
|
static java.lang.String |
BINDING_UNPROTECTED
|
static java.lang.String |
CONTEXT_OBJECT
|
| Method Summary | |
void |
bind(java.lang.String context,
java.lang.String name,
java.lang.String object,
java.lang.String protect,
Transaction transaction)
Binds object under name in the
context context. |
void |
clean(java.lang.String contextPrefix,
Transaction transaction)
Removes all bindings from the backend. |
void |
createSubcontext(java.lang.String parentContext,
java.lang.String name,
java.lang.String completeName,
Transaction transaction)
Create a new subcontext. |
void |
destroySubcontext(java.lang.String parentContext,
java.lang.String name,
java.lang.String completeName,
Transaction transaction)
Destroy an existing subcontext. |
void |
dropProtection(java.lang.String context,
java.lang.String name,
Transaction action)
|
void |
gc(Transaction action)
|
java.util.List |
getBindings(java.lang.String parentContext,
java.lang.String context,
Transaction transaction)
Returns a List containing Binding objects for every binding in the specified context. |
boolean |
isContext(java.lang.String parent,
java.lang.String name,
Transaction transaction)
Returns true if the specified name is bound to a context. |
java.lang.String |
lookup(java.lang.String context,
java.lang.String name,
Transaction transaction)
Returns the string bound to the specified name in the specified context. |
void |
rebind(java.lang.String context,
java.lang.String name,
java.lang.String object,
java.lang.String protect,
Transaction transaction)
Rebinds an object. |
void |
unbind(java.lang.String context,
java.lang.String name,
Transaction transaction)
Unbinds an object. |
void |
unbindAll(java.lang.String object,
Transaction transaction)
Removes all bindings to the specified object. |
| Field Detail |
public static final java.lang.String CONTEXT_OBJECT
public static final java.lang.String BINDING_PROTECT
public static final java.lang.String BINDING_UNPROTECTED
| Method Detail |
public void gc(Transaction action)
throws PersistenceException
PersistenceException
public void bind(java.lang.String context,
java.lang.String name,
java.lang.String object,
java.lang.String protect,
Transaction transaction)
throws javax.naming.NamingException
object under name in the
context context.
context - the fully qualified name of the context in which
the object should be boundname - the name under which the object should be boundobject - the string representation of the object to bindtransaction - the transaction within which the action
should take place.
javax.naming.NamingException - if the name is already bound, or if
an error internal to the plug-in occurred
public void createSubcontext(java.lang.String parentContext,
java.lang.String name,
java.lang.String completeName,
Transaction transaction)
throws javax.naming.NamingException
The name of the subcontext is specified both as the complete name and as the (parent, name) pair, so the plug-in does not need to know about concatenating names.
parentContext - the fully qualified name of the context of
the new subcontext's parentname - the unqualified name of the new subcontextcompleteName - the completely qualified name of the new
subcontexttransaction - the transaction within which the action
should take place.
javax.naming.NamingException - if the name is already used (either
for a bound object or for another context, or if an error
internal to the plugin occurred
public void destroySubcontext(java.lang.String parentContext,
java.lang.String name,
java.lang.String completeName,
Transaction transaction)
throws javax.naming.NamingException
If the name is not bound, this method fails silently.
parentContext - the fully qualified name of the context of
the destroyed subcontext's parentname - the name of the subcontext to be destroyedcompleteName - the fully qualified name of the subcontext
to destroytransaction - the transaction within which the action
should take place.
javax.naming.NamingException - if name was bound to something that
is not a context or if an error internal to the plugin occurred
public java.util.List getBindings(java.lang.String parentContext,
java.lang.String context,
Transaction transaction)
throws javax.naming.NamingException
getObject should be identical to the result one
would get when doing a lookup on the name of that
binding. The classname of the binding will be set by the
front-end
parentContext - the fully qualified name of the parent of
the context for which the bindings should be generatedcontext - the unqualified name of the context for
which the bindings should be generatedtransaction - the transaction within which the action
should take place.
javax.naming.NamingException - if the context was not bound, or if
an error internal to the plug-in occurred.
public boolean isContext(java.lang.String parent,
java.lang.String name,
Transaction transaction)
throws javax.naming.NamingException
parent - the context's parent contextname - the name of the contexttransaction - the action within which the action should take place
javax.naming.NamingException - if the name is not bound, or if an
internal error occurred.
public java.lang.String lookup(java.lang.String context,
java.lang.String name,
Transaction transaction)
throws javax.naming.NamingException
context - the fully qualified name of the context in which to
lookupname - the name of the object to search fortransaction - the transaction within which the action should
take place.
name was previously bound to a string s
, this method returns that s . If name
was used to create a subcontext, this method should return the
symbolic constant CONTEXT_OBJECT
javax.naming.NamingException - if the name was not bound, or if an error
internal to the plug-in occurred.
public void rebind(java.lang.String context,
java.lang.String name,
java.lang.String object,
java.lang.String protect,
Transaction transaction)
throws javax.naming.NamingException
context - the fully qualified name of the context in which
to rebind.name - the name of the object to rebindobject - the new value of the object bound to name.transaction - the transaction within which the action
should take place.
javax.naming.NamingException - if the object identified by 'name'
was bound to a context, or if an error internal to the plug-in
occurred.
public void unbind(java.lang.String context,
java.lang.String name,
Transaction transaction)
throws javax.naming.NamingException
context - the fully qualified name of the context in which
to unbind.name - the unqualified name of the object to unbindtransaction - the transaction within which the action
should take place.
javax.naming.NamingException - if the object is a context, or if an error
internal to the plug-in occurred.
public void dropProtection(java.lang.String context,
java.lang.String name,
Transaction action)
throws javax.naming.NamingException
javax.naming.NamingException
public void unbindAll(java.lang.String object,
Transaction transaction)
throws javax.naming.NamingException
object - the bound object that should be removedtransaction - the transaction within which the action
should take place.
javax.naming.NamingException - if an error internal to the plug-in
occurred.
public void clean(java.lang.String contextPrefix,
Transaction transaction)
throws javax.naming.NamingException
contextPrefix - the prefix of all contexts that should be
removed.transaction - the transaction within which the action
should take place.
javax.naming.NamingException - if an error internal to the plug-in
occurred.
|
Copyright 2005, Tryllian Solutions B.V. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||