| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Externalizable
Externalizable is one of the Application Component Interfaces, implemented by a composite application component. It is used to save the state of your component into an application XML.
Note: The component instance identifier input parameter used in the serializeInstance(String) method is the identifer returned by the Templateable#createFromTemplate(Reader, ListModel) method if it was created from a template, otherwise it is the id from the Lifecycle.createInstance(ListModel) method.
Method Summary | |
---|---|
javax.xml.transform.Source | serializeInstance(java.lang.String id)
This method is called to serialize the business component instance. |
Method Detail |
---|
javax.xml.transform.Source serializeInstance(java.lang.String id) throws ComponentException
SAXSource
object should be returned. This allows for
streaming the business component data into the aggregated XML document. It is however also
valid to return any other Source
object as long as it results in a well-formed
XML document.
If your component can only generate the content as a String or DOM the following can be used:
java.io.Reader reader = new StringReader("<data>my data</data>"); javax.xml.transform.Source source = new javax.xml.transform.stream.StreamSource(reader); javax.xml.transform.Source source = new javax.xml.transform.dom.DOMSource(document);
null
.
Source
object delivering the XML document for this business component instance
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |