Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dre4merp authored Apr 28, 2023
1 parent 2eb8d78 commit bdadc66
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions demo/app/src/main/java/org/pf4j/demo/DemoPluginFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,18 @@
*/
package org.pf4j.demo;

import java.lang.reflect.Constructor;
import org.pf4j.DefaultPluginFactory;
import org.pf4j.Plugin;
import org.pf4j.PluginWrapper;
import org.pf4j.demo.api.PluginContext;

import java.lang.reflect.Constructor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

class DemoPluginFactory extends DefaultPluginFactory {

private static final Logger log = LoggerFactory.getLogger(DemoPluginFactory.class);

@Override
protected Plugin createInstance(Class<?> pluginClass, PluginWrapper pluginWrapper) {
PluginContext context = new PluginContext(pluginWrapper.getRuntimeMode());
Expand Down
2 changes: 1 addition & 1 deletion pf4j/src/main/java/org/pf4j/DefaultPluginFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
*/
public class DefaultPluginFactory implements PluginFactory {

protected static final Logger log = LoggerFactory.getLogger(DefaultPluginFactory.class);
private static final Logger log = LoggerFactory.getLogger(DefaultPluginFactory.class);

/**
* Creates a plugin instance. If an error occurs than that error is logged and the method returns {@code null}.
Expand Down

0 comments on commit bdadc66

Please sign in to comment.