Package org.openbp.common

Examples of org.openbp.common.ReflectException


  public void addShallowMapping(String fromName, String toName)
  {
    Class to = ReflectUtil.loadClass(toName);
    if (to == null)
    {
      throw new ReflectException(MsgFormat.format("Result class $0 for class mapping not found.", toName));
    }

    registry.register(fromName, to);
  }
View Full Code Here


  public void addDeepMapping(String fromName, String toName)
  {
    Class from = ReflectUtil.loadClass(fromName);
    if (from == null)
    {
      throw new ReflectException(MsgFormat.format("Mapped class $0 for class mapping not found.", fromName));
    }

    Class to = ReflectUtil.loadClass(toName);
    if (to == null)
    {
      throw new ReflectException(MsgFormat.format("Result class $0 for class mapping not found.", toName));
    }

    registry.registerByClass(from, to);
  }
View Full Code Here

TOP

Related Classes of org.openbp.common.ReflectException

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.