final class ClassFinder extends AnyRef

Utility class that can scan for classes in the classpath and find all the ones annotated with a particular annotation.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ClassFinder
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ClassFinder(jarFile: File)
  2. new ClassFinder(loader: ClassLoader)
  3. new ClassFinder()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from ClassFinder to any2stringadd[ClassFinder] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ClassFinder, B)
    Implicit
    This member is added by an implicit conversion from ClassFinder to ArrowAssoc[ClassFinder] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def ensuring(cond: (ClassFinder) ⇒ Boolean, msg: ⇒ Any): ClassFinder
    Implicit
    This member is added by an implicit conversion from ClassFinder to Ensuring[ClassFinder] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  9. def ensuring(cond: (ClassFinder) ⇒ Boolean): ClassFinder
    Implicit
    This member is added by an implicit conversion from ClassFinder to Ensuring[ClassFinder] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: Boolean, msg: ⇒ Any): ClassFinder
    Implicit
    This member is added by an implicit conversion from ClassFinder to Ensuring[ClassFinder] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean): ClassFinder
    Implicit
    This member is added by an implicit conversion from ClassFinder to Ensuring[ClassFinder] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def find(packageName: String, parentType: Class[_]): Unit

    Scans the classpath for classes within the specified package and sub-packages that extend the parentType.

    Scans the classpath for classes within the specified package and sub-packages that extend the parentType. This method can be called repeatedly with different packages. Classes are accumulated internally and can be accessed by calling #getClasses().

  16. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from ClassFinder to StringFormat[ClassFinder] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  18. def getClasses(): Set[Class[_]]

    Fetches the set of classes discovered so far.

  19. def getConcreteClasses(): Set[Class[_]]

    Fetches the set of classes discovered so far, subsetted down to concrete (non-abstract/interface) classes only

    Fetches the set of classes discovered so far, subsetted down to concrete (non-abstract/interface) classes only

    returns

    subset of classes discovered so far including only concrete (non-abstract/interface) classes

  20. def handleItem(name: String): Unit

    Checks an item to see if it is a class and is annotated with the specified annotation.

    Checks an item to see if it is a class and is annotated with the specified annotation. If so, adds it to the set, otherwise ignores it.

    name

    the path equivelant to the package + class/item name

    Attributes
    protected[com.fulcrumgenomics.commons.util]
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  26. def scanDir(file: File, path: String): Unit

    Scans a directory on the filesystem for classes.

    Scans a directory on the filesystem for classes.

    file

    the directory or file to examine

    path

    the package path acculmulated so far (e.g. edu/mit/broad)

    Attributes
    protected[com.fulcrumgenomics.commons.util]
  27. def scanJar(file: File, packagePath: String): Unit

    Scans the entries in a ZIP/JAR file for classes under the parent package.

    Scans the entries in a ZIP/JAR file for classes under the parent package.

    file

    the jar file to be scanned

    packagePath

    the top level package to start from

    Attributes
    protected[com.fulcrumgenomics.commons.util]
  28. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  29. def toClassName(filename: String): String

    Convert a filename to a class name by removing '.class' and converting '/'s to '.'s.

  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. def [B](y: B): (ClassFinder, B)
    Implicit
    This member is added by an implicit conversion from ClassFinder to ArrowAssoc[ClassFinder] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from ClassFinder to any2stringadd[ClassFinder]

Inherited by implicit conversion StringFormat from ClassFinder to StringFormat[ClassFinder]

Inherited by implicit conversion Ensuring from ClassFinder to Ensuring[ClassFinder]

Inherited by implicit conversion ArrowAssoc from ClassFinder to ArrowAssoc[ClassFinder]

Ungrouped