Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.uima
Interface CompositeResourceFactory

All Superinterfaces:
  ResourceFactory

    public interface CompositeResourceFactory

extends ResourceFactory

A type of `ResourceFactory` that 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 of `ResourceSpecifier` that the factory can handle is passed to this method. In the event that more than one `ResourceFactory` is registered for the same Resource Specifier class, the most recently registered factory will be tried first.

Method Summary
`void` | `registerFactory(Class aResourceSpecifierInterface, ResourceFactory aFactory)` Registers a ResourceFactory with this composite factory.

Methods inherited from interface org.apache.uima.ResourceFactory
`produceResource`

Method Detail

### registerFactory

    void registerFactory(Class aResourceSpecifierInterface,
                         ResourceFactory aFactory)

  Registers a ResourceFactory with this composite factory.

  Parameters:
    `aResourceSpecifierInterface` - the subinterface of `ResourceSpecifier` that the factory can handle
    `aFactory` - the factory used to create resources from resource specifiers of the given type

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2007 The Apache Software Foundation. All Rights Reserved.