Class DefaultClassFinder

  • All Implemented Interfaces:
    ClassFinder

    public final class DefaultClassFinder
    extends java.lang.Object
    implements ClassFinder
    ClassFinder that finds Class resources under a given package name.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String path  
      private boolean recurse  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Enumeration<java.net.URL> findClasses​(ClassSpace space)
      Searches the given ClassSpace for Class resources.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • path

        private final java.lang.String path
      • recurse

        private final boolean recurse
    • Constructor Detail

      • DefaultClassFinder

        public DefaultClassFinder​(java.lang.String pkg)
      • DefaultClassFinder

        public DefaultClassFinder()
    • Method Detail

      • findClasses

        public java.util.Enumeration<java.net.URL> findClasses​(ClassSpace space)
        Description copied from interface: ClassFinder
        Searches the given ClassSpace for Class resources.
        Specified by:
        findClasses in interface ClassFinder
        Parameters:
        space - The space to search
        Returns:
        Sequence of Class URLs