Package com.adito.boot

Examples of com.adito.boot.PropertyClassManager


        if (propertyDefinitionsElement != null) {
          for (Iterator ci = propertyDefinitionsElement.getChildren()
              .iterator(); ci.hasNext();) {
            Element c = (Element) ci.next();
            PropertyClassManager pcm = PropertyClassManager
                .getInstance();
            PropertyClass pc = pcm.getPropertyClass(c.getName());
            if (pc == null) {
              throw new ExtensionException(
                  ExtensionException.INTERNAL_ERROR,
                  "No property definition class named "
                      + c.getName());
View Full Code Here


     *
     * @param key key
     * @return definition or <code>null</codE> if no definition could be found
     */
    public static PropertyDefinition getDefinition(AbstractPropertyKey key) {
        PropertyClassManager mgr = PropertyClassManager.getInstance();
        PropertyClass propertyClass = mgr.getPropertyClass(key.getPropertyClassName());
        if (propertyClass == null) {
            throw new IllegalArgumentException("Invalid property class " + key.getPropertyClassName() + ".");
        }
        return propertyClass.getDefinition(key.getName());
    }
View Full Code Here

TOP

Related Classes of com.adito.boot.PropertyClassManager

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.