Package jfun.yan

Examples of jfun.yan.Map


  }

  public Component eval() throws Exception {
    checkMandatory("class", of);
    final Component cc = getMandatory();
    return cc.map(new Map(){
      public Object map(Object obj){
        return Boolean.valueOf(ReflectionUtil.isInstance(of, obj));
      }
    }).cast(boolean.class);
  }
View Full Code Here


      final Class elem_type, final Component c){
    final Class type = c.getType();
    if(type!=null && ReflectionUtil.isAssignableFrom(elem_type, type)){
      return c;
    }
    return c.map(new Map(){
      public Object map(Object obj){
        try{
          return nut.convert(elem_type, obj);
        }
        catch(ConfigurationException e){
View Full Code Here

      }
    };
  }

  private static Map getFactoryBeanMap(final SpringContext ctxt){
    return new Map(){
      public Object map(Object obj)
      throws Exception{
        return injectFactoryBeanResult(ctxt, obj);
      }
    };
View Full Code Here

TOP

Related Classes of jfun.yan.Map

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.