Class GrouperPluginManager
java.lang.Object
edu.internet2.middleware.grouper.plugins.GrouperPluginManager
manage felix osgi plugins
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
retrievePluginImplementation
(String moduleJarNameInput, Class<T> theInterface) get the implementation of an interface from a pluginstatic <T> T
retrievePluginImplementation
(String moduleJarNameInput, Class<T> theInterface, String pluginClassName) get the implementation of an interface from a pluginstatic void
not sure where this would be called from, but heres the method
-
Constructor Details
-
GrouperPluginManager
public GrouperPluginManager()
-
-
Method Details
-
retrievePluginImplementation
get the implementation of an interface from a plugin- Type Parameters:
T
-- Parameters:
moduleJarNameInput
-theInterface
-- Returns:
- the instance of that plugin class
-
retrievePluginImplementation
public static <T> T retrievePluginImplementation(String moduleJarNameInput, Class<T> theInterface, String pluginClassName) get the implementation of an interface from a plugin- Type Parameters:
T
-- Parameters:
moduleJarNameInput
-theInterface
-pluginClassName
- or null to use the only one listed (if multiple throw error)- Returns:
- the instance of that plugin class
-
shutdownIfStarted
public static void shutdownIfStarted()not sure where this would be called from, but heres the method
-