|
||||||||||
| 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 | |
|---|---|
void |
registerLoader(javax.xml.namespace.QName element,
TypeLoader<?> loader)
Register a loader. |
void |
unregisterLoader(javax.xml.namespace.QName element)
Unregister the loader for the supplied element. |
| Methods inherited from interface org.sca4j.introspection.xml.Loader |
|---|
load, load |
| Method Detail |
|---|
void registerLoader(javax.xml.namespace.QName element,
TypeLoader<?> loader)
throws java.lang.IllegalStateException
element - the name of the XML global element that this loader can handleloader - a loader that is being contributed to the system
java.lang.IllegalStateException - if there is already a loader registered for the supplied elementvoid unregisterLoader(javax.xml.namespace.QName element)
element - the element whose loader should be unregistered
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||