org.jboss.deployers.vfs.spi.deployer
Class XSLDeployer<T>

java.lang.Object
  extended by org.jboss.deployers.spi.deployer.helpers.AbstractDeployer
      extended by org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployer
          extended by org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput<T>
              extended by org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer<T>
                  extended by org.jboss.deployers.vfs.spi.deployer.UnmarshallerFactoryDeployer<T,Boolean>
                      extended by org.jboss.deployers.vfs.spi.deployer.JAXPDeployer<T>
                          extended by org.jboss.deployers.vfs.spi.deployer.XSLDeployer<T>
Type Parameters:
T - the expected type
All Implemented Interfaces:
Deployer, JarExtensionProvider, Ordered, FileMatcher

public abstract class XSLDeployer<T>
extends JAXPDeployer<T>

SchemaResolverDeployer.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.deployers.spi.Ordered
Ordered.OrderedComparator
 
Field Summary
protected  String xslPath
          The xsl resource path
 
Fields inherited from class org.jboss.deployers.spi.deployer.helpers.AbstractDeployer
log
 
Fields inherited from interface org.jboss.deployers.spi.Ordered
COMPARATOR
 
Constructor Summary
XSLDeployer(Class<T> deploymentType)
          Create a new XSLDeployer.
 
Method Summary
 void create()
          Create lifecycle
 void destroy()
          Destroy lifecycle
 Templates getTemplates()
          Get the templates.
 String getXSLPath()
          Get the xslPath.
protected  T parse(VFSDeploymentUnit unit, org.jboss.virtual.VirtualFile file, T root)
          Parse a deployment
protected  void setParameters(Transformer trans)
          Set parameters for the transformation
 void setXSLPath(String xslPath)
          Set the xslPath.
 
Methods inherited from class org.jboss.deployers.vfs.spi.deployer.JAXPDeployer
createUnmarshallerFactory, doParse, fromString, getDocumentBuilderFactory, isUseNamespaceAwareParser, isValidateDTDs, parse, setSchemaLocation, setUseNamespaceAwareParser, setValidateDTDs
 
Methods inherited from class org.jboss.deployers.vfs.spi.deployer.UnmarshallerFactoryDeployer
getFeatures, isUseDefaultFeatures, setFeatures, setUseDefaultFeatures, start
 
Methods inherited from class org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer
accepts, accepts, allowsMultipleFiles, getAltMappings, getMetadataFile, handleMultipleFiles, init, isDeployable, matchFileToClass, mergeFiles, openStreamAndValidate, parse, parse, parse, parse, parseAndInit, setAllowMultipleFiles
 
Methods inherited from class org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput
allowsReparse, createMetaData, createMetaData, createMetaData, createMetaData, deploy, getAttachmentKey, getJarExtension, getMetaData, getName, getNames, getOutput, getSuffix, isBuildManagedObject, isIncludeDeploymentFile, setAttachmentKey, setBuildManagedObject, setIncludeDeploymentFile, setJarExtension, setName, setNames, setSuffix
 
Methods inherited from class org.jboss.deployers.spi.deployer.helpers.AbstractDeployer
addInput, addInput, addOutput, addOutput, getInput, getInputs, getOutputs, getRelativeOrder, getStage, isAllInputs, isComponentsOnly, isParentFirst, isTopLevelOnly, isWantComponents, setAllInputs, setComponentsOnly, setInput, setInputs, setInputs, setInputs, setOutput, setOutputs, setOutputs, setOutputs, setParentFirst, setRelativeOrder, setStage, setTopLevelOnly, setWantComponents, undeploy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xslPath

protected String xslPath
The xsl resource path

Constructor Detail

XSLDeployer

public XSLDeployer(Class<T> deploymentType)
Create a new XSLDeployer.

Parameters:
deploymentType - the deployment type
Throws:
IllegalArgumentException - for a null deployment type
Method Detail

getXSLPath

public String getXSLPath()
Get the xslPath.

Returns:
the xslPath.

setXSLPath

public void setXSLPath(String xslPath)
Set the xslPath.

Parameters:
xslPath - the xslPath.

getTemplates

public Templates getTemplates()
Get the templates.

Returns:
the templates.
Throws:
IllegalStateException - if the create method has not been invoked

create

public void create()
            throws Exception
Create lifecycle

Overrides:
create in class JAXPDeployer<T>
Throws:
Exception - for any problem

destroy

public void destroy()
Destroy lifecycle

Overrides:
destroy in class JAXPDeployer<T>

parse

protected T parse(VFSDeploymentUnit unit,
                  org.jboss.virtual.VirtualFile file,
                  T root)
           throws Exception
Description copied from class: AbstractVFSParsingDeployer
Parse a deployment

Overrides:
parse in class JAXPDeployer<T>
Parameters:
unit - the deployment unit
file - the metadata file
root - - possibly null pre-existing root
Returns:
the metadata
Throws:
Exception - for any error

setParameters

protected void setParameters(Transformer trans)
                      throws Exception
Set parameters for the transformation

Parameters:
trans - the transformer
Throws:
Exception - for any problem


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.