|
Tuscany Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.core.loader.impl.StAXLoaderRegistryImpl
public class StAXLoaderRegistryImpl
Nested Class Summary | |
---|---|
static interface |
StAXLoaderRegistryImpl.Monitor
|
Constructor Summary | |
---|---|
StAXLoaderRegistryImpl()
|
Method Summary | ||
---|---|---|
AssemblyContext |
getContext()
Deprecated. |
|
AssemblyObject |
load(javax.xml.stream.XMLStreamReader reader,
LoaderContext loaderContext)
Parse the supplied XML stream dispatching to the appropriate registered loader for each element encountered in the stream. |
|
|
registerLoader(QName element,
StAXElementLoader<T> loader)
Register a loader. |
|
void |
setContext(AssemblyContext context)
Deprecated. |
|
void |
setMonitor(StAXLoaderRegistryImpl.Monitor monitor)
|
|
|
unregisterLoader(QName element,
StAXElementLoader<T> loader)
Unregister a loader. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StAXLoaderRegistryImpl()
Method Detail |
---|
public void setMonitor(StAXLoaderRegistryImpl.Monitor monitor)
public <T extends AssemblyObject> void registerLoader(QName element, StAXElementLoader<T> loader)
StAXLoaderRegistry
registerLoader
in interface StAXLoaderRegistry
element
- the element that should be delegated to the contibuted loaderloader
- a loader that is being contributed to the systempublic <T extends AssemblyObject> void unregisterLoader(QName element, StAXElementLoader<T> loader)
StAXLoaderRegistry
unregisterLoader
in interface StAXLoaderRegistry
element
- the element that was being delegated to the contibuted loaderloader
- a loader that should no longer be usedpublic AssemblyObject load(javax.xml.stream.XMLStreamReader reader, LoaderContext loaderContext) throws javax.xml.stream.XMLStreamException, ConfigurationLoadException
StAXLoaderRegistry
load
in interface StAXLoaderRegistry
reader
- the XML stream to parse
javax.xml.stream.XMLStreamException
- if there was a problem reading the stream
ConfigurationLoadException
@Deprecated public AssemblyContext getContext()
StAXLoaderRegistry
getContext
in interface StAXLoaderRegistry
@Deprecated public void setContext(AssemblyContext context)
StAXLoaderRegistry
setContext
in interface StAXLoaderRegistry
context
- the model context for this load operation
|
Tuscany Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |