Package org.moyrax.reflect

Examples of org.moyrax.reflect.ClassResource


    Validate.notEmpty(annotationClass, "The annotation class cannot be null or"
        + " empty.");
    Validate.notNull(classLoader, "The class loader cannot be null.");

    try {
      ClassResource klass = new ClassResource(className, classLoader);

      return klass.isAnnotationPresent(annotationClass);
    } catch (IOException ex) {
      throw new ClassNotFoundException("The class " + className + " is not"
          + " found in the current classpath.", ex);
    }
  }
View Full Code Here


        "The class must be"
        + " designed to be exportable adding the Script annotation to the"
        + " class.");

    try {
      this.klass = new ClassResource(klassName, classLoader);
    } catch (IOException ex) {
      throw new IllegalArgumentException("Cannot read the specified"
          + " class resource", ex);
    }
View Full Code Here

TOP

Related Classes of org.moyrax.reflect.ClassResource

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.