|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.se.xslt.model.XsltConfigurationHandler
public class XsltConfigurationHandler
A handler for XSLT configurations.
Every element derived from the SU configuration and required at runtime is hold by such a handler.
| Constructor Summary | |
|---|---|
XsltConfigurationHandler(XsltConfiguration xsltConfiguration,
java.util.logging.Logger logger)
Constructor. |
|
| Method Summary | |
|---|---|
void |
check(java.util.logging.Logger logger)
Checks the handler. |
java.lang.ClassLoader |
getClassLoader()
|
java.lang.String |
getEndpointName()
|
java.lang.String |
getOutputAttachmentName()
|
void |
releaseTransformer(javax.xml.transform.Transformer transformer)
Releases a transformer (for the transformer pool). |
void |
start(java.util.logging.Logger logger)
Starts the handler. |
void |
stop()
Stops the handler. |
javax.xml.transform.Transformer |
takeTransformer(org.ow2.petals.component.framework.api.message.Exchange exchange,
java.util.logging.Logger logger)
Takes a transformer (with the right properties) in the transformer pool. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XsltConfigurationHandler(XsltConfiguration xsltConfiguration,
java.util.logging.Logger logger)
xsltConfiguration - an XSLT configurationlogger - the component's logger
org.ow2.petals.component.framework.api.exception.PEtALSCDKException| Method Detail |
|---|
public void check(java.util.logging.Logger logger)
throws org.ow2.petals.component.framework.api.exception.PEtALSCDKException
It tries to create the XSL template which is not cached (deployment)
If the SU embeds JAR files, they are loaded in the class loader of the
handler, so that they can be used by the XSL transformation.
logger - the logger of the component
org.ow2.petals.component.framework.api.exception.PEtALSCDKException - if the check fails
public void start(java.util.logging.Logger logger)
throws org.ow2.petals.component.framework.api.exception.PEtALSCDKException
The XSL style sheet is cached and a pool of transformer is created
If the SU embeds JAR files, they are loaded in the class loader of the
handler, so that they can be used by the XSL transformation.
logger - the logger of the component
org.ow2.petals.component.framework.api.exception.PEtALSCDKException - if the handler could not be startedpublic void stop()
The transformer is deleted and the class loader is freed.
public java.lang.String getEndpointName()
#getEndpointName()public java.lang.ClassLoader getClassLoader()
public java.lang.String getOutputAttachmentName()
public javax.xml.transform.Transformer takeTransformer(org.ow2.petals.component.framework.api.message.Exchange exchange,
java.util.logging.Logger logger)
throws javax.xml.transform.TransformerException
exchange - the exchange, to get its propertieslogger - the component logger
javax.xml.transform.TransformerException - if the transformer could not be created or if a XSL parameter
could not be overriddenpublic void releaseTransformer(javax.xml.transform.Transformer transformer)
transformer - the transformer to release
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||