Examples of args()


Examples of org.jboss.metatype.api.annotations.MetaMappingFactory.args()

      {
         Class<? extends MetaMapperFactory<?>> mmfClass = metaMappingFactory.value();
         try
         {
            MetaMapperFactory<?> mmf = mmfClass.newInstance();
            String[] args = metaMappingFactory.args();
            if(args.length > 0)
               metaMapper = mmf.newInstance(args);
            else
               metaMapper = mmf.newInstance();
         }
View Full Code Here

Examples of org.jboss.metatype.api.annotations.MetaMappingFactory.args()

      {
         Class<? extends MetaMapperFactory<?>> mmfClass = metaMappingFactory.value();
         try
         {
            MetaMapperFactory<?> mmf = mmfClass.newInstance();
            String[] args = metaMappingFactory.args();
            if(args.length > 0)
               metaMapper = mmf.newInstance(args);
            else
               metaMapper = mmf.newInstance();
         }
View Full Code Here

Examples of org.nutz.mvc.annotation.ChainBy.args()

  }

  private ActionChainMaker createChainMaker(NutConfig config, Class<?> mainModule) {
    ChainBy ann = mainModule.getAnnotation(ChainBy.class);
    ActionChainMaker maker = null == ann ? new NutActionChainMaker(new String[]{})
                      : Loadings.evalObj(config, ann.type(), ann.args());
    if (log.isDebugEnabled())
      log.debugf("@ChainBy(%s)", maker.getClass().getName());
    return maker;
  }
View Full Code Here

Examples of org.nutz.mvc.annotation.IocBy.args()

    IocBy ib = mainModule.getAnnotation(IocBy.class);
    if (null != ib) {
      if (log.isDebugEnabled())
        log.debugf("@IocBy(%s)", ib.type().getName());

      Ioc ioc = Mirror.me(ib.type()).born().create(config, ib.args());
      // 如果是 Ioc2 的实现,增加新的 ValueMaker
      if (ioc instanceof Ioc2) {
        ((Ioc2) ioc).addValueProxyMaker(new ServletValueProxyMaker(config.getServletContext()));
      }
      // 保存 Ioc 对象
View Full Code Here

Examples of org.nutz.mvc.annotation.SessionBy.args()

    @SuppressWarnings({"all"})
    private void createSessionProvider(NutConfig config, Class<?> mainModule) throws Exception {
        SessionBy sb = mainModule.getAnnotation(SessionBy.class);
        if (sb != null) {
            SessionProvider sp = null;
            if (sb.args() != null && sb.args().length == 1 && sb.args()[0].startsWith("ioc:"))
                sp = config.getIoc().get(sb.value(), sb.args()[0].substring(4));
            else
                sp = Mirror.me(sb.value()).born(sb.args());
            if (log.isInfoEnabled())
                log.info("SessionBy --> " + sp);
View Full Code Here

Examples of org.nutz.mvc.annotation.SetupBy.args()

    private void evalSetup(NutConfig config, Class<?> mainModule) throws Exception {
        SetupBy sb = mainModule.getAnnotation(SetupBy.class);
        if (null != sb) {
            if (log.isInfoEnabled())
                log.info("Setup application...");
            Setup setup = Loadings.evalObj(config, sb.value(), sb.args());
            config.setAttributeIgnoreNull(Setup.class.getName(), setup);
            setup.init(config);
        }
    }
View Full Code Here

Examples of org.nutz.mvc.annotation.UrlMappingBy.args()

    }

    private UrlMapping createUrlMapping(NutConfig config) throws Exception {
        UrlMappingBy umb = config.getMainModule().getAnnotation(UrlMappingBy.class);
        if (umb != null)
            return Loadings.evalObj(config, umb.value(), umb.args());
        return new UrlMappingImpl();
    }

    private ActionChainMaker createChainMaker(NutConfig config, Class<?> mainModule) {
        ChainBy ann = mainModule.getAnnotation(ChainBy.class);
View Full Code Here

Examples of org.omegahat.Environment.Parser.Parse.MethodCall.args()

  else
      call = new MethodCall(new Name(methodName), new ArgList(args));


  if(debug()) 
    System.err.println("[A] # call arguments "+ call.args().size());

  return(genericCallMethod(call, returnName, convert));
}

/**
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.