Package de.tsl2.nano.plugin
Class Plugins
java.lang.Object
de.tsl2.nano.plugin.Plugins
Is able to find all implementations of an interface and delegates each call to all loaded implementations to do an
inspections or decoration.
- Version:
- $Revision$
- Author:
- Tom
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> List<T>getImplementations(Class<T> interfaze) instances of provided implementations for the given interfacestatic <T extends Plugin>
Tstatic <T extends Plugin>
Tprocess(Class<T> pluginInterface, Class<? extends InvocationHandler> processingType)
-
Constructor Details
-
Plugins
public Plugins()
-
-
Method Details
-
process
-
process
public static <T extends Plugin> T process(Class<T> pluginInterface, Class<? extends InvocationHandler> processingType) -
getImplementations
instances of provided implementations for the given interface
-