Class PluginRuntime

    • Constructor Detail

      • PluginRuntime

        public PluginRuntime​(Class<T> clazz,
                             String scopeKey,
                             String runtimeKey)
      • PluginRuntime

        public PluginRuntime​(org.reflections.Reflections reflect,
                             String runtimeName,
                             String scopeKey,
                             String runtimeKey)
    • 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)
      • getUnregisteredPlugins

        public Set<Class<? extends IFCPlugin>> getUnregisteredPlugins()
      • addUnregisteredPlugin

        public void addUnregisteredPlugin​(Class<? extends IFCPlugin> pluginClazz)
      • getPluginsOfType

        public <T extends IFCPluginSet<T> getPluginsOfType​(Class<T> clazz)
        Parameters:
        clazz - the plugin class
        Returns:
        A Set of IFCPlugin of the given class.
      • getProperties

        public org.apache.commons.configuration.PropertiesConfiguration getProperties()
        Getter für die Plugin-Properties
        Returns:
        Properties die 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
      • getPropertiesConfiguration

        public Map<String,​IBundleConfigParam> getPropertiesConfiguration​(Locale locale)
        Returns a map with definitions of bundle configuration parameters. Key is the parameter name, value is a IBundleConfigParam that specifies which parameters are available.
        Parameters:
        locale - The locale for the current language.
        Returns:
        A Map with objects of type IBundleConfigParam.
      • setPropertyConfiguration

        public void setPropertyConfiguration​(List<IBundleProperties> propertyConfiguration)
      • hasPersitedData

        public boolean hasPersitedData()
      • getInstanciationTime

        public long getInstanciationTime()