org.apache.felix.gogo.runtime
Class CommandProxy
java.lang.Object
org.apache.felix.gogo.runtime.CommandProxy
- All Implemented Interfaces:
- Function
public class CommandProxy
- extends java.lang.Object
- implements Function
Constructor Summary |
CommandProxy(org.osgi.framework.BundleContext context,
org.osgi.framework.ServiceReference reference,
java.lang.String function)
|
CommandProxy(java.lang.Object target,
java.lang.String function)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandProxy
public CommandProxy(org.osgi.framework.BundleContext context,
org.osgi.framework.ServiceReference reference,
java.lang.String function)
CommandProxy
public CommandProxy(java.lang.Object target,
java.lang.String function)
getTarget
public java.lang.Object getTarget()
ungetTarget
public void ungetTarget()
execute
public java.lang.Object execute(CommandSession session,
java.util.List<java.lang.Object> arguments)
throws java.lang.Exception
- Description copied from interface:
Function
- Execute this function and return the result.
- Specified by:
execute
in interface Function
- Returns:
- the result from the execution.
- Throws:
java.lang.Exception
- if anything goes terribly wrong
Copyright © 2011. All Rights Reserved.