Class Package<T>
java.lang.Object
io.sbk.api.Package<T>
- Direct Known Subclasses:
RWLoggerPackage, StoragePackage
Utility base class for discovering implementation classes in a package.
This helper enumerates concrete classes of the configured type T
using the concrete subclass's implementation of getClasses(String)
(implementation typically uses a classpath scanner such as Reflections).
It provides convenience methods to list available implementations and to
instantiate them by simple name.
Subclasses should implement getClasses(String) to return the set
of concrete classes for the target package. The class stores the
discovered types in stable arrays and exposes sorted lookup functions used
by the CLI and helper utilities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetClasses(String packageName) Get the set of Available Storage classes.String[]protected booleanisEmpty()voidprintClasses(String header)
-
Constructor Details
-
Package
-
-
Method Details
-
getClasses
-
isEmpty
protected boolean isEmpty() -
getClassNames
-
getClass
@NotNull public T getClass(String classNAme) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException -
printClasses
-