Class CommandProxy

  • All Implemented Interfaces:
    Function

    public class CommandProxy
    extends java.lang.Object
    implements Function
    • Constructor Summary

      Constructors 
      Constructor Description
      CommandProxy​(java.lang.Object target, java.lang.String function)  
      CommandProxy​(org.osgi.framework.BundleContext context, org.osgi.framework.ServiceReference reference, java.lang.String function)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object execute​(CommandSession session, java.util.List<java.lang.Object> arguments)
      Execute this function and return the result.
      java.lang.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​(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)
    • Method Detail

      • 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