public class ExtractorRegistryImpl extends info.aduna.lang.service.ServiceRegistry<String,ExtractorFactory> implements ExtractorRegistry
Extractor.| Constructor and Description |
|---|
ExtractorRegistryImpl()
Public constructor for ExtractorRegistryImpl.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAllNames()
Returns the names of all registered extractors, sorted alphabetically.
|
ExtractorGroup |
getExtractorGroup() |
ExtractorGroup |
getExtractorGroup(List<String> names)
Returns an
ExtractorGroup containing the
ExtractorFactory mathing the names provided as input. |
ExtractorFactory<?> |
getFactory(String name)
Retrieves a
ExtractorFactory given its name |
static ExtractorRegistry |
getInstance() |
protected String |
getKey(ExtractorFactory service) |
boolean |
isRegisteredName(String name) |
void |
register(ExtractorFactory<?> factory)
Registers an
ExtractorFactory. |
void |
unregister(String name)
Unregisters the
ExtractorFactory with the given name. |
public ExtractorRegistryImpl()
public static ExtractorRegistry getInstance()
ExtractorRegistry instance.public void register(ExtractorFactory<?> factory)
ExtractorFactory.register in interface ExtractorRegistryfactory - IllegalArgumentException - if trying to register a ExtractorFactory
with a that already exists in the registry.public void unregister(String name)
ExtractorFactory with the given name.unregister in interface ExtractorRegistryname - The name of the ExtractorFactory to unregister.public ExtractorFactory<?> getFactory(String name)
ExtractorFactory given its namegetFactory in interface ExtractorRegistryname - of the desired factoryExtractorFactory associated to the provided nameIllegalArgumentException - if there is not a
ExtractorFactory associated to the provided name.public ExtractorGroup getExtractorGroup()
getExtractorGroup in interface ExtractorRegistryExtractorGroup with all the registered
Extractor.public ExtractorGroup getExtractorGroup(List<String> names)
ExtractorGroup containing the
ExtractorFactory mathing the names provided as input.getExtractorGroup in interface ExtractorRegistrynames - a List containing the names of the desired ExtractorFactory.public boolean isRegisteredName(String name)
isRegisteredName in interface ExtractorRegistryname - of the ExtractorFactorytrue if is there a ExtractorFactory
associated to the provided name.public List<String> getAllNames()
getAllNames in interface ExtractorRegistryprotected String getKey(ExtractorFactory service)
getKey in class info.aduna.lang.service.ServiceRegistry<String,ExtractorFactory>Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.