|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.dpml.lang.PartDecoder
public final class PartDecoder
Construct a part.
Field Summary | |
---|---|
static String |
PART_XSD_URI
Part XSD uri. |
Method Summary | |
---|---|
Part |
build(Logger logger,
Info information,
Classpath classpath,
Element strategy,
Resolver resolver)
Resolve a part plugin or resource strategy. |
Object |
decode(Element element,
Resolver resolver)
Resolve a object from a DOM element. |
Part |
decodePart(URI uri,
Element element,
Resolver resolver)
Resolve a part from a DOM element. |
protected Classpath |
getClasspath(Element root)
Construct the classpath defintion. |
URI |
getDecoderURI(Element element)
Resolve the element decoder uri. |
static PartDecoder |
getInstance()
Get the singleton instance of the part decoder. |
protected Logger |
getLogger()
Get the assigned logging channel. |
Part |
loadPart(URI uri,
boolean cache)
Load a part from a uri. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PART_XSD_URI
Method Detail |
---|
public static PartDecoder getInstance()
public Part loadPart(URI uri, boolean cache) throws IOException
uri
- the part uricache
- if true parts are cached relative to the requested uri
IOException
- if an IO error occurspublic Object decode(Element element, Resolver resolver) throws IOException
decode
in interface Decoder
element
- the dom elementresolver
- build-time value resolver
IOException
- if an error occurs during element evaluationpublic Part decodePart(URI uri, Element element, Resolver resolver) throws IOException
uri
- the part urielement
- element part definitionresolver
- build-time value resolver
IOException
- if an error occurs during element evaluationpublic Part build(Logger logger, Info information, Classpath classpath, Element strategy, Resolver resolver) throws IOException
logger
- the logging channelinformation
- the part info definitionclasspath
- the part classpath definitionstrategy
- part deployment strategy definitionresolver
- build-time value resolver
IOException
- if an error occurs during element evaluationpublic URI getDecoderURI(Element element) throws DecodingException
element
- the DOM element
DecodingException
- if an error occursprotected Logger getLogger()
protected Classpath getClasspath(Element root) throws DecodingException
root
- the element containing a 'classpath' element.
DecodingException
- if an error occurs during element evaluation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |