|
Apache Tuscany SCA Kernel Sub-Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LoaderRegistry
Registry for XML loaders that can parse a StAX input stream and return model objects.
Loaders will typically be contributed to the system by any extension that needs to handle extension specific information contained in some XML configuration file. The loader can be contributed as a system component with an autowire reference to this builderRegistry which is used during initialization to actually register. This builderRegistry can also be used to parse an input stream, dispatching to the appropriate loader for each element accepted. Loaders can call back to the builderRegistry to load sub-elements that they are not able to handle directly.
Method Summary | ||
---|---|---|
|
registerLoader(Class<I> key,
ComponentTypeLoader<I> loader)
Regsiter a component type loader. |
|
|
registerLoader(QName element,
StAXElementLoader<T> loader)
Register a loader. |
|
|
unregisterLoader(Class<I> key)
Unregister a component type loader form the system. |
|
|
unregisterLoader(QName element,
StAXElementLoader<T> loader)
Unregister a loader. |
Methods inherited from interface org.apache.tuscany.spi.loader.Loader |
---|
load, load, loadComponentType |
Method Detail |
---|
<T extends ModelObject> void registerLoader(QName element, StAXElementLoader<T> loader)
element
- the element that should be delegated to the contibuted loaderloader
- a loader that is being contributed to the system<T extends ModelObject> void unregisterLoader(QName element, StAXElementLoader<T> loader)
element
- the element that was being delegated to the contibuted loaderloader
- a loader that should no longer be used<I extends Implementation<?>> void registerLoader(Class<I> key, ComponentTypeLoader<I> loader)
key
- a type of implementation this loader can load component types forloader
- the loader that is being contributed to the system<I extends Implementation<?>> void unregisterLoader(Class<I> key)
key
- a type of implementation whose loader should be unregistered
|
Apache Tuscany SCA Kernel Sub-Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |