public interface CompositeResourceFactory extends ResourceFactory
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.
Modifier and Type | Method and Description |
---|---|
void |
registerFactory(Class<? extends ResourceSpecifier> aResourceSpecifierInterface,
ResourceFactory aFactory)
Registers a ResourceFactory with this composite factory.
|
produceResource
void registerFactory(Class<? extends ResourceSpecifier> aResourceSpecifierInterface, ResourceFactory aFactory)
aResourceSpecifierInterface
- the subinterface of ResourceSpecifier
that the
factory can handleaFactory
- the factory used to create resources from resource specifiers of the given typeCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.