java.lang.Object
org.tentackle.common.BundleSupport
Support to locate bundle services.
For annotations providing bundle support, a META-INF/service entry must be created manually in order to be processed by the BundleFactory at runtime as well as the analyze-, checker- and i18n-maven-plugins at build time.
For annotations providing bundle support, a META-INF/service entry must be created manually in order to be processed by the BundleFactory at runtime as well as the analyze-, checker- and i18n-maven-plugins at build time.
- Author:
- harald
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe service name to find all annotations to mark classes as bundles.
Such as @Bundle or @FxControllerService. -
Constructor Summary
ConstructorsConstructorDescriptionBundleSupport(ModuleInfo info, String className, String bundleName) Creates a bundle support object. -
Method Summary
Modifier and TypeMethodDescriptionGets the bundle name.static List<BundleSupport> getBundles(ClassLoader classLoader) Finds all bundle services.Gets the name of the annotated class.Gets the module info.
-
Field Details
-
BUNDLE_SERVICE
The service name to find all annotations to mark classes as bundles.
Such as @Bundle or @FxControllerService.The bundle service entry may optionally hold the path to the resource bundle property file. If missing, the resource name will be created from the classname.
-
-
Constructor Details
-
BundleSupport
Creates a bundle support object.- Parameters:
info- the optional jigsaw module info, null if noneclassName- the name of the annotated classbundleName- the name of the resource bundle
-
-
Method Details
-
getBundles
Finds all bundle services.- Parameters:
classLoader- the classloader, null if default- Returns:
- the list of bundle supports
-
getModuleInfo
Gets the module info.- Returns:
- the optional module info, null if none
-
getClassName
Gets the name of the annotated class.- Returns:
- the annotated class name
-
getBundleName
Gets the bundle name.- Returns:
- the bundle name
-