Package org.apache.uima
Interface CompositeResourceFactory
-
- All Superinterfaces:
ResourceFactory
- All Known Implementing Classes:
CompositeResourceFactory_impl
public interface CompositeResourceFactory extends ResourceFactory
A type ofResourceFactorythat produces resources by delegating to other Resource Factories.Resource Factories are registered with the composite factory by calling the
registerFactory(Class,ResourceFactory)method. The type ofResourceSpecifierthat the factory can handle is passed to this method. In the event that more than oneResourceFactoryis registered for the same Resource Specifier class, the most recently registered factory will be tried first.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidregisterFactory(java.lang.Class<? extends ResourceSpecifier> aResourceSpecifierInterface, ResourceFactory aFactory)Registers a ResourceFactory with this composite factory.-
Methods inherited from interface org.apache.uima.ResourceFactory
produceResource
-
-
-
-
Method Detail
-
registerFactory
void registerFactory(java.lang.Class<? extends ResourceSpecifier> aResourceSpecifierInterface, ResourceFactory aFactory)
Registers a ResourceFactory with this composite factory.- Parameters:
aResourceSpecifierInterface- the subinterface ofResourceSpecifierthat the factory can handleaFactory- the factory used to create resources from resource specifiers of the given type
-
-