org.openmdx.kernel.security.rmi
Class CallbackContext

java.lang.Object
  extended by org.openmdx.kernel.security.rmi.CallbackContext
All Implemented Interfaces:
ExecutionContext, Connection

public class CallbackContext
extends Object
implements ExecutionContext

Standard Callback Context


Constructor Summary
CallbackContext()
           
 
Method Summary
 void close()
          Closes this connection and releases any system resources associated with it.
 Object execute(PrivilegedAction action)
          Perfom work in this context
 Object execute(PrivilegedExceptionAction action)
          Perfom work in this context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallbackContext

public CallbackContext()
Method Detail

execute

public Object execute(PrivilegedAction action)
Description copied from interface: ExecutionContext
Perfom work in this context

Specified by:
execute in interface ExecutionContext
Parameters:
action - the code to be run in this context
Returns:
the Object returned by the PrivilegedAction's run method.

execute

public Object execute(PrivilegedExceptionAction action)
               throws PrivilegedActionException
Description copied from interface: ExecutionContext
Perfom work in this context

Specified by:
execute in interface ExecutionContext
Parameters:
action - the code to be run in this context
Returns:
the Object returned by the PrivilegedExceptionAction's run method.
Throws:
PrivilegedActionException - if the PrivilegedExceptionAction.run method throws a checked exception.

close

public void close()
Description copied from interface: Connection
Closes this connection and releases any system resources associated with it. If the connection is already closed then invoking this method has no effect.

Specified by:
close in interface Connection


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.