public class PluginConfiguration extends Object
| Constructor and Description |
|---|
PluginConfiguration(ClassLoader classLoader) |
PluginConfiguration(PluginConfiguration parent,
ClassLoader classLoader) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsPropertyFile()
Does this classloader contain the property file directly, or is it acquired through parent classloader.
|
String[] |
getBasePackagePrefixes()
Converts watchResources property to URL array.
|
ClassLoader |
getClassLoader()
Returns classloader associated with this configuration (i.e. it was initiated from).
|
List<String> |
getDisabledPlugins()
List of disabled plugin names
|
URL[] |
getExtraClasspath()
Get extraClasspath property as URL[].
|
String |
getProperty(String property)
Get configuration property value
|
String |
getProperty(String property,
String defaultValue)
Get configuration property value
|
boolean |
getPropertyBoolean(String property)
Convenience method to get property as a boolean value using Boolean.valueOf().
|
URL[] |
getWatchResources()
Converts watchResources property to URL array.
|
URL[] |
getWebappDir()
Return configuration property webappDir as URL.
|
protected void |
init()
Initialize the configuration.
|
boolean |
isDisabledPlugin(Class<?> pluginClass)
Check if the plugin is disabled (in this classloader)
|
boolean |
isDisabledPlugin(String pluginName)
Check if the plugin is disabled (in this classloader)
|
public PluginConfiguration(ClassLoader classLoader)
public PluginConfiguration(PluginConfiguration parent, ClassLoader classLoader)
protected void init()
public String getProperty(String property)
property - property namepublic String getProperty(String property, String defaultValue)
property - property namedefaultValue - value to return if property not definedpublic boolean getPropertyBoolean(String property)
property - property namepublic URL[] getExtraClasspath()
public URL[] getWatchResources()
public String[] getBasePackagePrefixes()
public URL[] getWebappDir()
public boolean isDisabledPlugin(String pluginName)
public boolean isDisabledPlugin(Class<?> pluginClass)
public ClassLoader getClassLoader()
public boolean containsPropertyFile()
Copyright © 2018. All rights reserved.