Package org.pf4j.asm
Class ExtensionInfo
java.lang.Object
org.pf4j.asm.ExtensionInfo
This class holds the parameters of an
Extension
annotation defined for a certain class.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the name of the class, for which extension info was created.int
Get theExtension.ordinal()
value, that was assigned to the extension.Get theExtension.plugins()
value, that was assigned to the extension.Get theExtension.points()
value, that was assigned to the extension.static ExtensionInfo
load
(String className, ClassLoader classLoader) Load anExtensionInfo
for a certain class.
-
Field Details
-
log
private static final org.slf4j.Logger log -
className
-
ordinal
int ordinal -
plugins
-
points
-
-
Constructor Details
-
ExtensionInfo
-
-
Method Details
-
getClassName
Get the name of the class, for which extension info was created.- Returns:
- absolute class name
-
getOrdinal
public int getOrdinal()Get theExtension.ordinal()
value, that was assigned to the extension.- Returns:
- ordinal value
-
getPlugins
Get theExtension.plugins()
value, that was assigned to the extension.- Returns:
- ordinal value
-
getPoints
Get theExtension.points()
value, that was assigned to the extension.- Returns:
- ordinal value
-
load
Load anExtensionInfo
for a certain class.- Parameters:
className
- absolute class nameclassLoader
- class loader to access the class- Returns:
- the
ExtensionInfo
, if the class was annotated with anExtension
, otherwise null
-