org.jboss.deployers.vfs.spi.deployer
Class JBossXBDeployer<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.JBossXBDeployer<T>
Type Parameters:
T - the expected type
All Implemented Interfaces:
Deployer, JarExtensionProvider, Ordered, FileMatcher
Direct Known Subclasses:
ObjectModelFactoryDeployer, SchemaResolverDeployer

public abstract class JBossXBDeployer<T>
extends UnmarshallerFactoryDeployer<T,Boolean>

JBoss XB deployer.

Author:
Ales Justin

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.deployers.spi.Ordered
Ordered.OrderedComparator
 
Field Summary
 
Fields inherited from class org.jboss.deployers.spi.deployer.helpers.AbstractDeployer
log
 
Fields inherited from interface org.jboss.deployers.spi.Ordered
COMPARATOR
 
Constructor Summary
JBossXBDeployer(Class<T> output)
          Create a new SchemaResolverDeployer.
 
Method Summary
protected  org.jboss.deployers.vfs.spi.deployer.UnmarshallerFactory<Boolean> createUnmarshallerFactory()
          Create unmarshaller factory wrapper.
protected  Boolean fromString(String value)
          Transform string to flag value.
protected  org.jboss.xb.util.JBossXBHelper<T> getHelper()
          Get the helper.
 boolean isUseSchemaValidation()
          Get the useSchemaValidation.
 boolean isUseValidation()
          Get the useValidation.
 void setUseSchemaValidation(boolean useSchemaValidation)
          Set the useSchemaValidation.
 void setUseValidation(boolean useValidation)
          Set the useValidation.
 
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, 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
 

Constructor Detail

JBossXBDeployer

public JBossXBDeployer(Class<T> output)
Create a new SchemaResolverDeployer.

Parameters:
output - the output
Throws:
IllegalArgumentException - for a null output
Method Detail

getHelper

protected org.jboss.xb.util.JBossXBHelper<T> getHelper()
Get the helper.

Returns:
the helper

createUnmarshallerFactory

protected org.jboss.deployers.vfs.spi.deployer.UnmarshallerFactory<Boolean> createUnmarshallerFactory()
Description copied from class: UnmarshallerFactoryDeployer
Create unmarshaller factory wrapper.

Specified by:
createUnmarshallerFactory in class UnmarshallerFactoryDeployer<T,Boolean>
Returns:
the unmarshaller factory

fromString

protected Boolean fromString(String value)
Description copied from class: UnmarshallerFactoryDeployer
Transform string to flag value.

Specified by:
fromString in class UnmarshallerFactoryDeployer<T,Boolean>
Parameters:
value - the value
Returns:
value as T type

isUseSchemaValidation

public boolean isUseSchemaValidation()
Get the useSchemaValidation.

Returns:
the useSchemaValidation.

setUseSchemaValidation

public void setUseSchemaValidation(boolean useSchemaValidation)
Set the useSchemaValidation.

Parameters:
useSchemaValidation - the useSchemaValidation.

isUseValidation

public boolean isUseValidation()
Get the useValidation.

Returns:
the useValidation.

setUseValidation

public void setUseValidation(boolean useValidation)
Set the useValidation.

Parameters:
useValidation - the useValidation.


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