Package org.pf4j
Class DefaultPluginFactory
- java.lang.Object
-
- org.pf4j.DefaultPluginFactory
-
- All Implemented Interfaces:
PluginFactory
public class DefaultPluginFactory extends java.lang.Object implements PluginFactory
The default implementation forPluginFactory
. It usesClass.newInstance()
method.
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.Logger
log
-
Constructor Summary
Constructors Constructor Description DefaultPluginFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Plugin
create(PluginWrapper pluginWrapper)
Creates a plugin instance.
-
-
-
Method Detail
-
create
public Plugin create(PluginWrapper pluginWrapper)
Creates a plugin instance. If an error occurs than that error is logged and the method returns null.- Specified by:
create
in interfacePluginFactory
- Parameters:
pluginWrapper
-- Returns:
-
-