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 ExtractorRegistry
factory
- 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 ExtractorRegistry
name
- The name of the ExtractorFactory to unregister.public ExtractorFactory<?> getFactory(String name)
ExtractorFactory
given its namegetFactory
in interface ExtractorRegistry
name
- 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 ExtractorRegistry
ExtractorGroup
with all the registered
Extractor
.public ExtractorGroup getExtractorGroup(List<String> names)
ExtractorGroup
containing the
ExtractorFactory
mathing the names provided as input.getExtractorGroup
in interface ExtractorRegistry
names
- a List
containing the names of the desired ExtractorFactory
.public boolean isRegisteredName(String name)
isRegisteredName
in interface ExtractorRegistry
name
- of the ExtractorFactory
true
if is there a ExtractorFactory
associated to the provided name.public List<String> getAllNames()
getAllNames
in interface ExtractorRegistry
protected String getKey(ExtractorFactory service)
getKey
in class info.aduna.lang.service.ServiceRegistry<String,ExtractorFactory>
Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.