Package org.crsh.shell.impl.command

Examples of org.crsh.shell.impl.command.InvocationContextImpl


  @Override
  public Object getProperty(String property) {
    if ("context".equals(property)) {
      return context;
    } else {
      Object value = Helper.resolveProperty(new InvocationContextImpl(context), property);
      if (value != null) {
        return value;
      } else {
        value = InvokerHelper.getProperty(owner, property);
      }
View Full Code Here


    }
  }

  @Override
  public Object invokeMethod(String name, Object args) {
    SafeCallable runnable = Helper.resolveMethodInvocation(new InvocationContextImpl(context), name, args);
    if (runnable != null) {
      return runnable.call();
    } else {
      return InvokerHelper.invokeMethod(owner, name, args);
    }
View Full Code Here

TOP

Related Classes of org.crsh.shell.impl.command.InvocationContextImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.