Package org.corpus_tools.pepper.core
Interface ModuleResolver
-
- All Known Implementing Classes:
ModuleResolverImpl
public interface ModuleResolver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidactivate(org.osgi.service.component.ComponentContext componentContext)Sets theComponentContextof the OSGi environment the bundle was started in.voidaddPepperExporterComponentFactory(org.osgi.service.component.ComponentFactory pepperExporterComponentFactory)This method is called by OSGi framework and adds all registeredComponentFactoryobjects having the name PepperExporterComponentFactory to this object.voidaddPepperImporterComponentFactory(org.osgi.service.component.ComponentFactory pepperImporterComponentFactory)This method is called by OSGi framework and adds all registeredComponentFactoryobjects having the name PepperImporterComponentFactory to this object.voidaddPepperManipulatorComponentFactory(org.osgi.service.component.ComponentFactory pepperManipulatorComponentFactory)This method is called by OSGi framework and adds all registeredComponentFactoryobjects having the name PepperManipulatorComponentFactory to this object.org.osgi.service.component.ComponentContextgetComponentContext()Returns theComponentContextof the OSGi environment the bundle was started in.PepperConfigurationgetConfiguration()Returns the configuration object for this converter object.PepperExportergetPepperExporter(StepDesc stepDesc)Creates an instance ofPepperExporterfor each listedComponentFactoryin list#pepperExporterComponentFactoriesand returns that list.List<org.osgi.service.component.ComponentFactory>getPepperExporterComponentFactories()TODO make docuList<PepperExporter>getPepperExporters()Creates an instance ofPepperExporterfor each listedComponentFactoryin list#pepperExporterComponentFactoriesand returns that list.PepperImportergetPepperImporter(StepDesc stepDesc)Returns aPepperImporterobject matching to the givenImporterParams.List<org.osgi.service.component.ComponentFactory>getPepperImporterComponentFactories()TODO make docuList<PepperImporter>getPepperImporters()Creates an instance ofPepperImporterfor each listedComponentFactoryin list#pepperImporterComponentFactoriesand returns that list.PepperManipulatorgetPepperManipulator(StepDesc stepDesc)Creates an instance ofPepperManipulatorfor each listedComponentFactoryin list#pepperManipulatorComponentFactoriesand returns that list.List<org.osgi.service.component.ComponentFactory>getPepperManipulatorComponentFactories()TODO make docuList<PepperManipulator>getPepperManipulators()Creates an instance ofPepperManipulatorfor each listedComponentFactoryin list#pepperManipulatorComponentFactoriesand returns that list.PepperModulegetPepperModule(StepDesc stepDesc)Returns aPepperModuleobject matching to the givenStepDesc.StringgetStatus()Returns a status description asString.voidremovePepperExporterComponentFactory(org.osgi.service.component.ComponentFactory pepperExporterComponentFactory)TODO make some docuvoidremovePepperImporterComponentFactory(org.osgi.service.component.ComponentFactory pepperImporterComponentFactory)TODO make docuvoidremovePepperManipulatorComponentFactory(org.osgi.service.component.ComponentFactory pepperManipulatorComponentFactory)TODO make docuvoidsetConfiguration(PepperConfiguration pepperConfiguration)Sets the configuration object for this object.
-
-
-
Field Detail
-
RESOURCES
static final String RESOURCES
- See Also:
- Constant Field Values
-
-
Method Detail
-
getComponentContext
org.osgi.service.component.ComponentContext getComponentContext()
Returns theComponentContextof the OSGi environment the bundle was started in.- Returns:
-
activate
void activate(org.osgi.service.component.ComponentContext componentContext)
Sets theComponentContextof the OSGi environment the bundle was started in.- Parameters:
componentContext-
-
getStatus
String getStatus()
Returns a status description asString. The returnedStringcontains the number of all availablePepperModuleobjects in a readable format.- Returns:
Stringrepresentation of allPepperModuleobjects available by thisPepperModuleResolverobject.
-
addPepperImporterComponentFactory
void addPepperImporterComponentFactory(org.osgi.service.component.ComponentFactory pepperImporterComponentFactory)
This method is called by OSGi framework and adds all registeredComponentFactoryobjects having the name PepperImporterComponentFactory to this object. AllComponentFactoryobjects are stored in an internal object#pepperImporterComponentFactories
-
removePepperImporterComponentFactory
void removePepperImporterComponentFactory(org.osgi.service.component.ComponentFactory pepperImporterComponentFactory)
TODO make docu
-
getPepperImporterComponentFactories
List<org.osgi.service.component.ComponentFactory> getPepperImporterComponentFactories()
TODO make docu
-
addPepperManipulatorComponentFactory
void addPepperManipulatorComponentFactory(org.osgi.service.component.ComponentFactory pepperManipulatorComponentFactory)
This method is called by OSGi framework and adds all registeredComponentFactoryobjects having the name PepperManipulatorComponentFactory to this object. AllComponentFactoryobjects are stored in an internal object#pepperManipulatorComponentFactories.
-
removePepperManipulatorComponentFactory
void removePepperManipulatorComponentFactory(org.osgi.service.component.ComponentFactory pepperManipulatorComponentFactory)
TODO make docu
-
getPepperManipulatorComponentFactories
List<org.osgi.service.component.ComponentFactory> getPepperManipulatorComponentFactories()
TODO make docu
-
addPepperExporterComponentFactory
void addPepperExporterComponentFactory(org.osgi.service.component.ComponentFactory pepperExporterComponentFactory)
This method is called by OSGi framework and adds all registeredComponentFactoryobjects having the name PepperExporterComponentFactory to this object. AllComponentFactoryobjects are stored in the internal object list#pepperExporterComponentFactories.- Parameters:
pepperExporterComponentFactory-ComponentFactoryobject to be stored in internal list
-
removePepperExporterComponentFactory
void removePepperExporterComponentFactory(org.osgi.service.component.ComponentFactory pepperExporterComponentFactory)
TODO make some docu
-
getPepperExporterComponentFactories
List<org.osgi.service.component.ComponentFactory> getPepperExporterComponentFactories()
TODO make docu
-
setConfiguration
void setConfiguration(PepperConfiguration pepperConfiguration)
Sets the configuration object for this object.- Parameters:
pepperConfiguration-
-
getConfiguration
PepperConfiguration getConfiguration()
Returns the configuration object for this converter object. If noPepperConfigurationobject was set, an automatic detection of configuration file will be started.- Returns:
- configuration object
-
getPepperImporters
List<PepperImporter> getPepperImporters()
Creates an instance ofPepperImporterfor each listedComponentFactoryin list#pepperImporterComponentFactoriesand returns that list. ThisPepperModuleResolverinstance does not store any link to the created object, so it can be used and removed as the caller like. Thus each call creates a new list containing new objects.- Returns:
- a list of
PepperImporterobjects.
-
getPepperManipulators
List<PepperManipulator> getPepperManipulators()
Creates an instance ofPepperManipulatorfor each listedComponentFactoryin list#pepperManipulatorComponentFactoriesand returns that list. ThisPepperModuleResolverinstance does not store any link to the created object, so it can be used and removed as the caller like. Thus each call creates a new list containing new objects.- Returns:
- a list of
PepperManipulatorobjects.
-
getPepperExporters
List<PepperExporter> getPepperExporters()
Creates an instance ofPepperExporterfor each listedComponentFactoryin list#pepperExporterComponentFactoriesand returns that list. ThisPepperModuleResolverinstance does not store any link to the created object, so it can be used and removed as the caller like. Thus each call creates a new list containing new objects.- Returns:
- a list of
PepperExporterobjects.
-
getPepperModule
PepperModule getPepperModule(StepDesc stepDesc)
Returns aPepperModuleobject matching to the givenStepDesc. A new instance of the specificPepperImporterclass is created and returned. No references to the returned object will be stored in thisPepperModuleResolverobject. When calling#getPepperModule(ImporterParams)a new instance ofPepperModuleis created.- Parameters:
pepperImporterParams- specifies thePepperModuleobject to be found- Returns:
- a new instance of
PepperModulematching the givenStepDesc
-
getPepperImporter
PepperImporter getPepperImporter(StepDesc stepDesc)
Returns aPepperImporterobject matching to the givenImporterParams. A new instance of the specificPepperImporterclass is created and returned. No references to the returned object will be stored in thisPepperModuleResolverobject. When calling#getPepperImporter(ImporterParams)a new instance ofPepperImporteris created.- Parameters:
pepperImporterParams- specifies thePepperImporterobject to be found- Returns:
- a new instance of
PepperImportermatching the givenImporterParams
-
getPepperManipulator
PepperManipulator getPepperManipulator(StepDesc stepDesc)
Creates an instance ofPepperManipulatorfor each listedComponentFactoryin list#pepperManipulatorComponentFactoriesand returns that list. ThisPepperModuleResolverinstance does not store any link to the created object, so it can be used and removed as the caller like. Thus each call creates a new list containing new objects.- Returns:
- a list of
PepperManipulatorobjects.
-
getPepperExporter
PepperExporter getPepperExporter(StepDesc stepDesc)
Creates an instance ofPepperExporterfor each listedComponentFactoryin list#pepperExporterComponentFactoriesand returns that list. ThisPepperModuleResolverinstance does not store any link to the created object, so it can be used and removed as the caller like. Thus each call creates a new list containing new objects.- Returns:
- a list of
PepperExporterobjects.
-
-