[
https://issues.apache.org/jira/browse/ABDERA-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rob Evans updated ABDERA-52:
----------------------------
Description:
As a developer, I'd like to be able to determine what extensions have been
registered with the factory. I suppose this means giving access to the
ExtensionFactoryMap in some manner.
Something along the lines of the following would be nice:
Factory factory = Abdera.getNewFactory();
Strin[] extensionNames = factory.listRegisteredExtensions();
was:
As a developer, I'd like to be able to determine what extensions have been
registered with the factory. I suppose this means giving access to the
ExtensionFactoryMap in some manner.
Something along the lines of the following would be nice:
Factory factory = Abdera.getNewFactory();
Strin[] extensionNames = factory.listRegisteredExtensions();
Looks like what I need can be found in the configuration:
Abdera abdera = new Abdera();
List factories = abdera.getConfiguration().getExtensionFactories();
for (Iterator iterator = factories.iterator(); iterator.hasNext();) {
ExtensionFactory factory = (ExtensionFactory) iterator.next();
System.out.println(factory.getClass().getName());
}
> Expose Registered Extensions
> ----------------------------
>
> Key: ABDERA-52
> URL: https://issues.apache.org/jira/browse/ABDERA-52
> Project: Abdera
> Issue Type: Improvement
> Affects Versions: 0.3.0
> Reporter: Rob Evans
>
> As a developer, I'd like to be able to determine what extensions have been
> registered with the factory. I suppose this means giving access to the
> ExtensionFactoryMap in some manner.
> Something along the lines of the following would be nice:
> Factory factory = Abdera.getNewFactory();
> Strin[] extensionNames = factory.listRegisteredExtensions();
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.