|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Loader
System service for loading configuration artifacts from an XML source.
| Method Summary | ||
|---|---|---|
|
load(java.net.URL url,
java.lang.Class<OUTPUT> type,
IntrospectionContext context)
Load a model object from a specified location. |
|
|
load(javax.xml.stream.XMLStreamReader reader,
java.lang.Class<OUTPUT> type,
IntrospectionContext context)
Parse the supplied XML stream, dispatching to the appropriate registered loader for each element encountered in the stream. |
|
| Method Detail |
|---|
<OUTPUT> OUTPUT load(javax.xml.stream.XMLStreamReader reader,
java.lang.Class<OUTPUT> type,
IntrospectionContext context)
throws javax.xml.stream.XMLStreamException,
UnrecognizedElementException
reader - the XML stream to parsetype - the type of Java object that should be returnedcontext - the current loader context
UnrecognizedElementException - if no loader was found for the element
javax.xml.stream.XMLStreamException - if there was a problem reading the stream
java.lang.ClassCastException - if the XML type cannot be cast to the expected output type
<OUTPUT> OUTPUT load(java.net.URL url,
java.lang.Class<OUTPUT> type,
IntrospectionContext context)
throws LoaderException
url - the location of an XML document to be loadedtype - the type of Java Object that should be returnedcontext - the current loader context
LoaderException - if there was a problem loading the document
java.lang.ClassCastException - if the XML type cannot be cast to the expected output type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||