public class PluginHelper extends Object
| Constructor and Description | 
|---|
PluginHelper()  | 
| Modifier and Type | Method and Description | 
|---|---|
static EPluginCompatibility | 
checkPluginVersion(PluginManifest manifest)  | 
static EPluginCompatibility | 
checkPluginVersion(String requiredFCVersionStr)  | 
static org.reflections.Reflections | 
createReflections(File file)
Creates reflections for the given file if it is an jar 
 | 
static List<? extends Class<? extends IFCPlugin>> | 
getAllPlugins(PluginRuntime pluginRuntime)  | 
static List<? extends Class<? extends IFCPlugin>> | 
getAllPlugins(org.reflections.Reflections reflect)  | 
static List<IBundleProperties> | 
getBundleProperties(org.reflections.Reflections reflect)
Method to load  
IBundleProperties from the given Reflections | 
static String | 
getDisplayName(IFCPlugin plugin,
              Locale locale)
Returns the display name of the plugin if it is not null. 
 | 
static File | 
getPluginFolder(PluginRuntime runtime)
Deprecated.  
 | 
static File | 
getPluginFolder(String scopeKey,
               String runtimeKey)
Deprecated.  
 | 
static File | 
getPluginJarFile(PluginRuntime rtm)
Deprecated.  
 | 
static File | 
getPluginJarFile(String scopeKey,
                String runtimeKey)
Deprecated.  
 | 
static PluginManifest | 
getPluginManifest(File jarFile)  | 
static PluginManifest | 
getPluginManifest(PluginRuntime pluginRuntime)  | 
static File | 
getPluginMetaFile(PluginRuntime rtm)
Deprecated.  
 | 
static File | 
getPluginMetaFile(String scopeKey,
                 String runtimeKey)
Deprecated.  
 | 
static org.apache.commons.configuration.PropertiesConfiguration | 
getPluginProperties(PluginRuntime rtm)
Deprecated.  
 | 
static org.apache.commons.configuration.PropertiesConfiguration | 
getPluginProperties(String scopeKey,
                   String runtimeKey)
Deprecated.  
 | 
static File | 
getPluginPropertiesFile(PluginRuntime rtm)
Deprecated.  
 | 
static File | 
getPluginPropertiesFile(String scopeKey,
                       String runtimeKey)
Deprecated.  
 | 
static String | 
getScopeKey(Mandant man)
Deprecated.  
 | 
static boolean | 
hasRemotePlugins(org.reflections.Reflections reflect)  | 
static boolean | 
isPluginJar(File file)
Tests if the given file is a jar and contains FORMCYCLE-plugins of the type  
IFCPlugin | 
static <T extends IFCPlugin> | 
registerPlugin(boolean install,
              boolean initialize,
              PluginRuntime prtm,
              Class<T> clazz)  | 
static void | 
removeJarFileCacheEntries(JarFile jarToDelete)
Deprecated.  
 | 
static void | 
savePluginProperties(PluginRuntime rtm,
                    Properties props)
Deprecated.  
 | 
static void | 
savePluginProperties(String scopeKey,
                    String runtimeKey,
                    Properties props)
Deprecated.  
 | 
public static EPluginCompatibility checkPluginVersion(PluginManifest manifest)
public static EPluginCompatibility checkPluginVersion(String requiredFCVersionStr)
public static PluginManifest getPluginManifest(PluginRuntime pluginRuntime)
public static PluginManifest getPluginManifest(File jarFile)
public static <T extends IFCPlugin> T registerPlugin(boolean install, boolean initialize, PluginRuntime prtm, Class<T> clazz) throws InstantiationException, IllegalAccessException, FCPluginException
public static boolean isPluginJar(File file)
IFCPluginpublic static List<IBundleProperties> getBundleProperties(org.reflections.Reflections reflect)
IBundleProperties from the given Reflectionsreflect - Reflectionspublic static org.reflections.Reflections createReflections(File file) throws MalformedURLException
file - FileReflectionsMalformedURLException - if the file-url is malformedpublic static List<? extends Class<? extends IFCPlugin>> getAllPlugins(org.reflections.Reflections reflect)
public static List<? extends Class<? extends IFCPlugin>> getAllPlugins(PluginRuntime pluginRuntime)
public static boolean hasRemotePlugins(org.reflections.Reflections reflect)
public static String getDisplayName(IFCPlugin plugin, Locale locale)
@Deprecated public static void removeJarFileCacheEntries(JarFile jarToDelete)
@Deprecated public static String getScopeKey(Mandant man)
@Deprecated public static File getPluginFolder(PluginRuntime runtime)
@Deprecated public static File getPluginFolder(String scopeKey, String runtimeKey)
@Deprecated public static File getPluginPropertiesFile(PluginRuntime rtm)
@Deprecated public static File getPluginPropertiesFile(String scopeKey, String runtimeKey)
@Deprecated public static File getPluginMetaFile(PluginRuntime rtm)
@Deprecated public static File getPluginMetaFile(String scopeKey, String runtimeKey)
@Deprecated public static File getPluginJarFile(PluginRuntime rtm)
@Deprecated public static File getPluginJarFile(String scopeKey, String runtimeKey)
@Deprecated public static void savePluginProperties(PluginRuntime rtm, Properties props) throws IOException
IOException@Deprecated public static void savePluginProperties(String scopeKey, String runtimeKey, Properties props) throws IOException
IOException@Deprecated public static org.apache.commons.configuration.PropertiesConfiguration getPluginProperties(PluginRuntime rtm)
@Deprecated public static org.apache.commons.configuration.PropertiesConfiguration getPluginProperties(String scopeKey, String runtimeKey)
Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.