Package org.soybeanMilk.core

Examples of org.soybeanMilk.core.Executable


       
        if(children != null)
        {
          for(Element e : children)
          {
            Executable executable=createExecutableInstance(e.getTagName());
           
            if(executable instanceof Action)
              setActionProperties((Action)executable,e);
            else
              setInvokeProperties((Invoke)executable,e, true);
View Full Code Here


        if(actionExes==null)
          continue;
       
        for(int i=0,len=actionExes.size();i<len;i++)
        {
          Executable e=actionExes.get(i);
         
          if(e instanceof ExecutableRefProxy)
          {
            ExecutableRefProxy proxy=((ExecutableRefProxy)e);
            Executable targetExe=getTargetRefExecutable((ExecutableRefProxy)e);
           
            if(targetExe == null)
              throw new ParseException("can not find Executable named "+SbmUtils.toString(proxy.getRefName())+" referenced in Action "+SbmUtils.toString(action.getName()));
           
            actionExes.set(i, targetExe);
View Full Code Here

    Interceptor ii=getConfiguration().getInterceptor();
    if(ii == null)
      return;
   
    {
      Executable before=ii.getBefore();
      if(before instanceof ExecutableRefProxy)
      {
        Executable targetExe=getTargetRefExecutable((ExecutableRefProxy)before);
        if(targetExe == null)
          throw new ParseException("can not find 'before' interceptor named "+SbmUtils.toString(((ExecutableRefProxy)before).getRefName()));
       
        ii.setBefore(targetExe);
      }
    }
   
    {
      Executable after=ii.getAfter();
      if(after instanceof ExecutableRefProxy)
      {
        Executable targetExe=getTargetRefExecutable((ExecutableRefProxy)after);
        if(targetExe == null)
          throw new ParseException("can not find 'after' interceptor named "+SbmUtils.toString(((ExecutableRefProxy)after).getRefName()));
       
        ii.setAfter(targetExe);
      }
    }
   
    {
      Executable exception=ii.getException();
      if(exception instanceof ExecutableRefProxy)
      {
        Executable targetExe=getTargetRefExecutable((ExecutableRefProxy)exception);
        if(targetExe == null)
          throw new ParseException("can not find 'exception' interceptor named "+SbmUtils.toString(((ExecutableRefProxy)exception).getRefName()));
       
        ii.setException(targetExe);
      }
View Full Code Here

   * @return
   * @date 2011-3-15
   */
  protected Executable getTargetRefExecutable(ExecutableRefProxy proxy)
  {
    Executable target=null;
   
    //先从它的文件作用域内取
    if(target == null)
    {
      if(proxy.getCurrentExecutablePrefix() != null)
View Full Code Here

  }
 
  public void execute(String executableName, WebObjectSource webObjSource)
      throws ExecuteException, ExecutableNotFoundException, ServletException, IOException
  {
    Executable re=super.execute(executableName, webObjSource);
   
    handleTarget(re, webObjSource);
  }
View Full Code Here

  @Override
  protected Executable findExecutable(String executableName, ObjectSource objSource)
      throws ExecuteException
  {
    Executable re=super.findExecutable(executableName, objSource);
    if(re==null && isEnableVariablePath())
    {
      VariablePath valuePath=new VariablePath(executableName);
      VariablePath targetPath=getVariablePathMatcher().getMatched(valuePath);
      if(targetPath != null)
View Full Code Here

TOP

Related Classes of org.soybeanMilk.core.Executable

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.