类 CommandProxy

  • 所有已实现的接口:
    Function

    public class CommandProxy
    extends java.lang.Object
    implements Function
    • 构造器概要

      构造器 
      构造器 说明
      CommandProxy​(java.lang.Object target, java.lang.String function)  
      CommandProxy​(org.osgi.framework.BundleContext context, org.osgi.framework.ServiceReference reference, java.lang.String function)  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      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()  
      • 从类继承的方法 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
        从接口复制的说明: Function
        Execute this function and return the result.
        指定者:
        execute 在接口中 Function
        返回:
        the result from the execution.
        抛出:
        java.lang.Exception - if anything goes terribly wrong