org.apache.felix.gogo.runtime
Class CommandProxy

java.lang.Object
  extended by org.apache.felix.gogo.runtime.CommandProxy
All Implemented Interfaces:
Function

public class CommandProxy
extends Object
implements Function


Constructor Summary
CommandProxy(BundleContext context, ServiceReference reference, String function)
           
CommandProxy(Object target, String function)
           
 
Method Summary
 Object execute(CommandSession session,  arguments)
          Execute this function and return the result.
 Object getTarget()
           
 void ungetTarget()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandProxy

public CommandProxy(BundleContext context,
                    ServiceReference reference,
                    String function)

CommandProxy

public CommandProxy(Object target,
                    String function)
Method Detail

getTarget

public Object getTarget()

ungetTarget

public void ungetTarget()

execute

public Object execute(CommandSession session,
                       arguments)
               throws 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:
Exception - if anything goes terribly wrong


Copyright © 2011 Apache Software Foundation. All Rights Reserved.