Package org.pf4j.asm
Class ExtensionInfo
- java.lang.Object
-
- org.pf4j.asm.ExtensionInfo
-
public final class ExtensionInfo extends java.lang.Object
This class holds the parameters of anExtension
annotation defined for a certain class.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ExtensionInfo(java.lang.String className)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getClassName()
Get the name of the class, for which extension info was created.int
getOrdinal()
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 ExtensionInfo
load(java.lang.String className, java.lang.ClassLoader classLoader)
Load anExtensionInfo
for 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 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
-
-