congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
WebClassesFinder
Code IndexAdd Tabnine to your IDE (free)

How to use
WebClassesFinder
in
com.ocpsoft.pretty.faces.config.annotation

Best Java code snippets using com.ocpsoft.pretty.faces.config.annotation.WebClassesFinder (Showing top 12 results out of 315)

origin: ocpsoft/prettyfaces

public void findClasses(PrettyAnnotationHandler handler)
{
 try
 {
   // we start the recursive scan in the classes folder
   URL classesFolderUrl = servletContext.getResource(CLASSES_FOLDER);
   // abort if classes folder is missing
   if (classesFolderUrl == null)
   {
    log.warn("Cannot find classes folder: " + CLASSES_FOLDER);
    return;
   }
   // call recursive directory processing method
   processDirectory(classesFolderUrl, classesFolderUrl, handler);
 }
 catch (MalformedURLException e)
 {
   throw new IllegalStateException("Invalid URL: " + e.getMessage(), e);
 }
}
origin: ocpsoft/prettyfaces

String result = stripKnownPrefix(path, CLASSES_FOLDER);
  result = stripKnownPrefix(path, classesFolderPath);
origin: ocpsoft/prettyfaces

String relativeDirectoryName = getPathRelativeToClassesFolder(directoryUrl.getPath(), classesFolderPath);
     String entryRelativeName = getPathRelativeToClassesFolder(entryName, classesFolderPath);
     String className = getClassName(entryRelativeName);
     if (mustProcessClass(className) && !processedClasses.contains(className))
        processClass(className, classFileStream, handler);
     processDirectory(classesFolderUrl, entryUrl, handler);
origin: ocpsoft/prettyfaces

classFinders.add(new WebClassesFinder(servletContext, classloader, packageFilter));
origin: ocpsoft/prettyfaces

String relativeDirectoryName = getPathRelativeToClassesFolder(directoryUrl.getPath(), classesFolderPath);
     String entryRelativeName = getPathRelativeToClassesFolder(entryName, classesFolderPath);
     String className = getClassName(entryRelativeName);
     if (mustProcessClass(className) && !processedClasses.contains(className))
        processClass(className, classFileStream, handler);
     processDirectory(classesFolderUrl, entryUrl, handler);
origin: com.ocpsoft/prettyfaces-jsf2

classFinders.add(new WebClassesFinder(servletContext, classloader, packageFilter));
origin: com.ocpsoft/prettyfaces-jsf2

String relativeDirectoryName = getPathRelativeToClassesFolder(directoryUrl.getPath(), classesFolderPath);
     String entryRelativeName = getPathRelativeToClassesFolder(entryUrl.getPath(), classesFolderPath);
     String className = getClassName(entryRelativeName);
     if (mustProcessClass(className) && !processedClasses.contains(className))
        processClass(className, classFileStream, handler);
     processDirectory(classesFolderUrl, entryUrl, handler);
origin: ocpsoft/prettyfaces

public void findClasses(PrettyAnnotationHandler handler)
{
 try
 {
   // we start the recursive scan in the classes folder
   URL classesFolderUrl = servletContext.getResource(CLASSES_FOLDER);
   // abort if classes folder is missing
   if (classesFolderUrl == null)
   {
    log.warn("Cannot find classes folder: " + CLASSES_FOLDER);
    return;
   }
   // call recursive directory processing method
   processDirectory(classesFolderUrl, classesFolderUrl, handler);
 }
 catch (MalformedURLException e)
 {
   throw new IllegalStateException("Invalid URL: " + e.getMessage(), e);
 }
}
origin: ocpsoft/prettyfaces

String result = stripKnownPrefix(path, CLASSES_FOLDER);
  result = stripKnownPrefix(path, classesFolderPath);
origin: ocpsoft/prettyfaces

classFinders.add(new WebClassesFinder(servletContext, classloader, packageFilter));
origin: com.ocpsoft/prettyfaces-jsf2

public void findClasses(PrettyAnnotationHandler handler)
{
 try
 {
   // we start the recursive scan in the classes folder
   URL classesFolderUrl = servletContext.getResource(CLASSES_FOLDER);
   // abort if classes folder is missing
   if (classesFolderUrl == null)
   {
    log.warn("Cannot find classes folder: " + CLASSES_FOLDER);
    return;
   }
   // call recursive directory processing method
   processDirectory(classesFolderUrl, classesFolderUrl, handler);
 }
 catch (MalformedURLException e)
 {
   throw new IllegalStateException("Invalid URL: " + e.getMessage(), e);
 }
}
origin: com.ocpsoft/prettyfaces-jsf2

String result = stripKnownPrefix(path, CLASSES_FOLDER);
  result = stripKnownPrefix(path, classesFolderPath);
com.ocpsoft.pretty.faces.config.annotationWebClassesFinder

Javadoc

Implementation of ClassFinder that searches for classes in the /WEB-INF/classes directory of a web application. Please note that this class is stateful. It should be used only for one class to #findClasses(PrettyAnnotationHandler).

Most used methods

  • <init>
    Initialization
  • getClassName
  • getPathRelativeToClassesFolder
    This method will create a path relative to the '/WEB-INF/classes/' folder for the given path. It wil
  • mustProcessClass
  • processClass
  • processDirectory
    Scan for classes in a single directory. This method will call itself recursively if it finds other d
  • stripKnownPrefix

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSharedPreferences (Context)
  • getSupportFragmentManager (FragmentActivity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now