Class ExtensionInfo
java.lang.Object
org.pf4j.asm.ExtensionInfo
-
Method Summary
Modifier and TypeMethodDescriptionGet the name of the class, for which extension info was created.intGet 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 ExtensionInfoload(String className, ClassLoader classLoader) Load anExtensionInfofor a certain class.
-
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 anExtensionInfofor 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
-