|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkieker.webgui.persistence.impl.utility.PluginFinder
@Service public final class PluginFinder
This is a service which can be used to search for plugins and repositories within a given jar file. The classes are loaded using the reflection API.
Constructor Summary | |
---|---|
PluginFinder()
Default constructor. |
Method Summary | |
---|---|
Collection<Class<?>> |
getAllFiltersWithinJar(URL jarURL,
ClassLoader classLoader,
ClassContainer classContainer)
This method delivers all non abstract classes which are available in the given jar, have the Plugin annotation, and
are compatible with AbstractFilterPlugin . |
Collection<Class<?>> |
getAllReadersWithinJar(URL jarURL,
ClassLoader classLoader,
ClassContainer classContainer)
This method delivers all non abstract classes which are available in the given jar, have the Plugin annotation, and
are compatible with AbstractReaderPlugin . |
Collection<Class<?>> |
getAllRepositoriesWithinJar(URL jarURL,
ClassLoader classLoader,
ClassContainer classContainer)
This method delivers all non abstract classes which are available in the given jar, have the Repository
annotation, and are compatible with AbstractRepository . |
Collection<Class<?>> |
getAllVisualizationsWithinJar(URL jarURL,
ClassLoader classLoader,
ClassContainer classContainer)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PluginFinder()
Method Detail |
---|
public Collection<Class<?>> getAllRepositoriesWithinJar(URL jarURL, ClassLoader classLoader, ClassContainer classContainer) throws IOException
Repository
annotation, and are compatible with AbstractRepository
.
jarURL
- The URL for the jar.classLoader
- The class loader which should be used to load the classes.classContainer
- The container for the necessary reflection classes.
IOException
- If something went wrong during the opening of the jar file.public Collection<Class<?>> getAllReadersWithinJar(URL jarURL, ClassLoader classLoader, ClassContainer classContainer) throws IOException
Plugin
annotation, and
are compatible with AbstractReaderPlugin
.
jarURL
- The URL for the jar.classLoader
- The class loader which should be used to load the classes.classContainer
- The container for the necessary reflection classes.
IOException
- If something went wrong during the opening of the jar file.public Collection<Class<?>> getAllFiltersWithinJar(URL jarURL, ClassLoader classLoader, ClassContainer classContainer) throws IOException
Plugin
annotation, and
are compatible with AbstractFilterPlugin
.
jarURL
- The URL for the jar.classLoader
- The class loader which should be used to load the classes.classContainer
- The container for the necessary reflection classes.
IOException
- If something went wrong during the opening of the jar file.public Collection<Class<?>> getAllVisualizationsWithinJar(URL jarURL, ClassLoader classLoader, ClassContainer classContainer) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |