Package net.officefloor.compile.classes
Class OfficeFloorClassPathScanner
java.lang.Object
net.officefloor.compile.classes.OfficeFloorClassPathScanner
Class path scanner to aid discovering resources.- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionScans the package forClasspath entries.scanClasses(String packageName) Scans the package for justClassfully qualified names.static StringtranslatePackageToPath(String packageName) Convenience method to translates thePackagename to class path entry path.static StringtranslateResourceUrlToFilePath(URL resourceUrl) Translates the resourceURLto the JAR file path.
-
Constructor Details
-
OfficeFloorClassPathScanner
Instantiate.- Parameters:
context-SourceContext.
-
-
Method Details
-
translatePackageToPath
Convenience method to translates thePackagename to class path entry path. -
translateResourceUrlToFilePath
Translates the resourceURLto the JAR file path. -
scan
Scans the package forClasspath entries.- Parameters:
packageName- Package name.- Returns:
Classpath entries for the package.- Throws:
IOException- If fails to scan theClasspath.
-
scanClasses
Scans the package for justClassfully qualified names.- Parameters:
packageName- Package name.- Returns:
- Fully qualified
Classnames for the package. - Throws:
IOException- If fails to scan theClasspath.
-