Examples of ClassResource


Examples of org.carrot2.util.resource.ClassResource

    final Map<String, String> subtopicLabels;

    public FubTestCollection(String basePath)
    {
        /** [topicId][resultIndex] = subopicId */
        final int [][] resultSubtopicIds = loadSubtopicMapping(new ClassResource(
            AmbientDocumentSource.class, basePath + "/STRel.txt"));

        documentsByTopicId = loadDocuments(new ClassResource(AmbientDocumentSource.class,
            basePath + "/results.txt"), resultSubtopicIds);
        subtopicSizes = prepareSubtopicSizes(resultSubtopicIds);

        subtopicLabels = loadSubtopicLabels(new ClassResource(
            AmbientDocumentSource.class, basePath + "/subTopics.txt"));
    }
View Full Code Here

Examples of org.douyu.core.ClassResource

    controllerClassName = controllerClassName.replace('/', '.');

    StringWriter sw = new StringWriter();
    PrintWriter javacOut = new PrintWriter(sw);

    ClassResource cr = null;
    try {
      cr = holder.get().loadContextClassResource(controllerClassName, javacOut);
    } catch (JavacException e) {
      printJavacMessage(sw.toString(), response, e);
      return;
View Full Code Here

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

Examples of org.moyrax.reflect.ClassResource

        "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
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.