Package de.xima.fc.plugin.runtime
Class PluginRuntime
- java.lang.Object
-
- de.xima.fc.plugin.runtime.PluginRuntime
-
- All Implemented Interfaces:
Serializable
public class PluginRuntime extends Object implements Serializable
Model-class for a registered plugin- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PluginRuntime(Class<T> clazz, String scopeKey, String runtimeKey)PluginRuntime(org.reflections.Reflections reflect, String runtimeName, String scopeKey, String runtimeKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <T extends IFCPlugin>
voidaddPlugin(T plugin)voidaddUnregisteredPlugin(Class<? extends IFCPlugin> pluginClazz)voiddelete()Deprecated.Set<IFCPlugin>getAllPlugins()ClassLoader[]getClassLoaders()StringgetFutureScopeKey()Deprecated.usegetScopeKey()longgetInstanciationTime()FilegetJarFile()PluginManifestgetManifest()StringgetName()<T extends IFCPlugin>
Set<T>getPluginsOfType(Class<T> clazz)org.apache.commons.configuration.PropertiesConfigurationgetProperties()Getter für die Plugin-PropertiesMap<String,IBundleConfigParam>getPropertiesConfiguration(Locale locale)Returns a map with definitions of bundle configuration parameters.org.reflections.ReflectionsgetReflections()StringgetRuntimeKey()StringgetScopeKey()Set<Class<? extends IFCPlugin>>getUnregisteredPlugins()booleanhasPersitedData()booleanisSystemManaged()booleanisSystemScope()voidsaveProperties(Properties props)Methode zum Speichern der Properties eines Mandanten-PluginsvoidsetPropertyConfiguration(List<IBundleProperties> propertyConfiguration)voidshutdown()Deprecated.
-
-
-
Method Detail
-
getScopeKey
public String getScopeKey()
-
getRuntimeKey
public String getRuntimeKey()
-
getClassLoaders
public ClassLoader[] getClassLoaders()
-
isSystemManaged
public boolean isSystemManaged()
-
isSystemScope
public boolean isSystemScope()
-
getJarFile
public File getJarFile()
-
getReflections
public org.reflections.Reflections getReflections()
-
getName
public String getName()
-
addPlugin
public <T extends IFCPlugin> void addPlugin(T plugin)
-
getProperties
public org.apache.commons.configuration.PropertiesConfiguration getProperties()
Getter für die Plugin-Properties- Returns:
Propertiesdie Plugin-Properties
-
saveProperties
public void saveProperties(Properties props) throws IOException
Methode zum Speichern der Properties eines Mandanten-Plugins- Parameters:
props-Properties- Throws:
IOException- on errors while saving
-
getManifest
public PluginManifest getManifest()
-
getPropertiesConfiguration
public Map<String,IBundleConfigParam> getPropertiesConfiguration(Locale locale)
Returns a map with definitions of bundle configuration parameters. Key is the parameter name, value is aIBundleConfigParamthat specifies which parameters are available.- Parameters:
locale- The locale for the current language.- Returns:
- A
Mapwith objects of type IBundleConfigParam.
-
setPropertyConfiguration
public void setPropertyConfiguration(List<IBundleProperties> propertyConfiguration)
-
hasPersitedData
public boolean hasPersitedData()
-
getInstanciationTime
public long getInstanciationTime()
-
shutdown
@Deprecated public void shutdown() throws IOException
Deprecated.- Throws:
IOException- on errors while shutdown
-
getFutureScopeKey
@Deprecated public String getFutureScopeKey()
Deprecated.usegetScopeKey()
-
delete
@Deprecated public void delete() throws IOException
Deprecated.- Throws:
IOException- on errors while deletion
-
-