Package jfun.yan

Examples of jfun.yan.Component.verify()


    try{
      final Component c = getComponent(key);
      if(c==null){
        throw new UnresolvedComponentException(key);
      }
      return c.verify(getDependency(key));
    }
    catch(YanException e){
      e.push("verifyKey <" + key +">");
      throw e;
    }
View Full Code Here


  public Class verifyType(Class type){
    try{
      final Component c = getComponentOfType(type);
      if(c==null)
        throw new UnresolvedComponentException(type);
      return c.verify(getDependencyOfType(type));
    }
    catch(YanException e){
      e.push("verifyType <" + Misc.getTypeName(type) +">");
      throw e;
    }
View Full Code Here

  public synchronized void verify(final ComponentMap cmap) {
    for(Iterator it=creators.keySet().iterator();it.hasNext();){
      final Object ki = it.next();
      try{
        final Component cc = (Component)creators.get(ki);
        cc.verify(cmap.getDependency(ki, cmap));
      }
      catch(YanException e){
        e.push("verify <" + ki +">");
        throw e;
      }
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.