Package org.pf4j.asm
Class ExtensionInfo
- java.lang.Object
-
- org.pf4j.asm.ExtensionInfo
-
public final class ExtensionInfo extends java.lang.ObjectThis class holds the parameters of anExtensionannotation defined for a certain class.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateExtensionInfo(java.lang.String className)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetClassName()Get the name of the class, for which extension info was created.intgetOrdinal()Get theExtension.ordinal()value, that was assigned to the extension.java.util.List<java.lang.String>getPlugins()Get theExtension.plugins()value, that was assigned to the extension.java.util.List<java.lang.String>getPoints()Get theExtension.points()value, that was assigned to the extension.static ExtensionInfoload(java.lang.String className, java.lang.ClassLoader classLoader)Load anExtensionInfofor a certain class.
-
-
-
Method Detail
-
getClassName
public java.lang.String 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
public java.util.List<java.lang.String> getPlugins()
Get theExtension.plugins()value, that was assigned to the extension.- Returns:
- ordinal value
-
getPoints
public java.util.List<java.lang.String> getPoints()
Get theExtension.points()value, that was assigned to the extension.- Returns:
- ordinal value
-
load
public static ExtensionInfo load(java.lang.String className, java.lang.ClassLoader classLoader)
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
-
-