Browse Source

add info message about pf4j version and the runtime mode

pull/22/head
Decebal Suiu 11 years ago
parent
commit
69835a1406
  1. 5
      pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginManager.java

5
pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginManager.java

@ -571,9 +571,6 @@ public class DefaultPluginManager implements PluginManager {
// retrieves the runtime mode from system
String modeAsString = System.getProperty("pf4j.mode", RuntimeMode.DEPLOYMENT.toString());
runtimeMode = RuntimeMode.byName(modeAsString);
log.info("PF4J runtime mode is '{}'", runtimeMode);
}
return runtimeMode;
@ -716,6 +713,8 @@ public class DefaultPluginManager implements PluginManager {
pluginStateListeners = new ArrayList<PluginStateListener>();
log.info("PF4J version {} in '{}' mode", getVersion(), getRuntimeMode());
pluginClasspath = createPluginClasspath();
pluginDescriptorFinder = createPluginDescriptorFinder();
extensionFinder = createExtensionFinder();

Loading…
Cancel
Save