The configuration approach will only give you the factories discovered during the Abdera bootstrap. The Factory allows extension factories to be registered at runtime. Those would be be visible to the configuration. I just checked in a fix that provides a listExtensionFactories method.
- James Rob Evans (JIRA) wrote: > [ > 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(); >
