Package org.pf4j

Class DefaultPluginFactory

  • All Implemented Interfaces:
    PluginFactory

    public class DefaultPluginFactory
    extends java.lang.Object
    implements PluginFactory
    The default implementation for PluginFactory. It uses Class.newInstance() method.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static org.slf4j.Logger log  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Plugin create​(PluginWrapper pluginWrapper)
      Creates a plugin instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • log

        private static final org.slf4j.Logger log
    • Constructor Detail

      • DefaultPluginFactory

        public DefaultPluginFactory()
    • 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 interface PluginFactory
        Parameters:
        pluginWrapper -
        Returns: