1 17 package org.apache.ldap.server.invocation; 18 19 20 import java.io.Serializable ; 21 import java.util.Stack ; 22 23 import javax.naming.NamingException ; 24 25 import org.apache.ldap.server.BackingStore; 26 27 28 38 public abstract class Invocation implements Serializable 39 { 40 41 protected transient Object returnValue; 42 43 protected transient Stack contextStack; 44 45 46 49 protected Invocation() 50 { 51 } 52 53 54 57 public Object getReturnValue() 58 { 59 return returnValue; 60 } 61 62 63 66 public void setReturnValue( Object returnValue ) 67 { 68 this.returnValue = returnValue; 69 } 70 71 72 78 public Stack getContextStack() 79 { 80 return contextStack; 81 } 82 83 84 90 public void setContextStack( Stack contextStack ) 91 { 92 this.contextStack = contextStack; 93 } 94 95 96 103 public void execute( BackingStore store ) throws NamingException 104 { 105 setReturnValue( doExecute( store ) ); 106 } 107 108 109 115 protected abstract Object doExecute( BackingStore store ) throws NamingException ; 116 } 117 | Popular Tags |