Package org.aksw.faraday_cage.engine
Class PluginFactory<U extends Plugin>
java.lang.Object
org.aksw.faraday_cage.engine.PluginFactory<U>
- Direct Known Subclasses:
DecoratedExecutionNodeFactory
A generic factory for implementations of
FaradayCagePlugin.
Create an instance of this
-
Constructor Summary
ConstructorsConstructorDescriptionPluginFactory(Class<U> clazz, org.pf4j.PluginManager pluginManager, Resource type)Constructor, takes an instance of thisFaradayCagePluginFactorys type parametersClass. -
Method Summary
Modifier and TypeMethodDescriptionCreate an instance of theFaradayCagePluginidentified byid.getImplementationOf(Resource type)Create an instance ofFaradayCagePluginfor a giventype.List the names of all implementations ofT
-
Constructor Details
-
PluginFactory
Constructor, takes an instance of thisFaradayCagePluginFactorys type parametersClass.- Parameters:
clazz-Classinstance for thisFaradayCagePluginFactorys type parameterpluginManager- thePluginManagerto be used in thisFaradayCagePluginFactorytype- Common parent ExecutionNode subtype IRI which all instances producible by this factory share.
-
-
Method Details
-
create
Create an instance of theFaradayCagePluginidentified byid.- Parameters:
id- identifier of the instance to create- Returns:
- instance of the
FaradayCagePluginidentified byid.
-
getImplementationOf
Create an instance ofFaradayCagePluginfor a giventype.- Parameters:
type- type of the instance to create- Returns:
- instance of the
FaradayCagePluginfor the giventype.
-
listAvailable
List the names of all implementations ofT- Returns:
- list of names of all implementations of
T
-