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.
- Alphabetic
- By Inheritance
- ClassFinder
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
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
-
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()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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
-
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
-
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
-
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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()
. -
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()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getClasses(): Set[Class[_]]
Fetches the set of classes discovered so far.
-
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
-
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]
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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]
-
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]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toClassName(filename: String): String
Convert a filename to a class name by removing '.class' and converting '/'s to '.'s.
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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