|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ldap.server.invocation.Invocation
Represents a method invocation on BackingStore
s. You can perform any
BackingStore
calls by invoking JndiProvider.invoke(Invocation)
.
Field Summary | |
protected java.util.Stack |
contextStack
|
protected java.lang.Object |
returnValue
|
Constructor Summary | |
protected |
Invocation()
Creates a new instance. |
Method Summary | |
protected abstract java.lang.Object |
doExecute(BackingStore store)
Implement this method to invoke the appropriate operation on the specified store . |
void |
execute(BackingStore store)
Executes this invocation on the specified store . |
java.util.Stack |
getContextStack()
Gets the context stack in which this invocation occurs. |
java.lang.Object |
getReturnValue()
Returns the returnValue object for this invocation. |
void |
setContextStack(java.util.Stack contextStack)
Sets the context stack in which this invocation occurs. |
void |
setReturnValue(java.lang.Object returnValue)
Sets the returnValue object for this invocation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected transient java.lang.Object returnValue
protected transient java.util.Stack contextStack
Constructor Detail |
protected Invocation()
Method Detail |
public java.lang.Object getReturnValue()
public void setReturnValue(java.lang.Object returnValue)
public java.util.Stack getContextStack()
public void setContextStack(java.util.Stack contextStack)
contextStack
- a stack of LdapContexts in which the invocation occurspublic void execute(BackingStore store) throws javax.naming.NamingException
store
. The default
implementation calls an abstract method doExecute(BackingStore)
and sets the returnValue
property of this invocation to its return value.
javax.naming.NamingException
- if the operation failedprotected abstract java.lang.Object doExecute(BackingStore store) throws javax.naming.NamingException
store
. Returned value will be set as the returnValue
proeprty of this invocation.
javax.naming.NamingException
- if the operation failed
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |