org.jboss.deployers.vfs.spi.deployer
Class MultipleObjectModelFactoryDeployer<T>
java.lang.Object
org.jboss.deployers.spi.deployer.helpers.AbstractDeployer
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployer
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput<T>
org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer<T>
org.jboss.deployers.vfs.spi.deployer.MultipleVFSParsingDeployer<T>
org.jboss.deployers.vfs.spi.deployer.MultipleJBossXBDeployer<T>
org.jboss.deployers.vfs.spi.deployer.MultipleObjectModelFactoryDeployer<T>
- Type Parameters:
T
- the expected type
- All Implemented Interfaces:
- Deployer, JarExtensionProvider, Ordered, FileMatcher
public abstract class MultipleObjectModelFactoryDeployer<T>
- extends MultipleJBossXBDeployer<T>
MultipleObjectModelFactoryDeployer.
- Author:
- Ales Justin
Method Summary |
protected abstract
<U> org.jboss.xb.binding.ObjectModelFactory |
|
getObjectModelFactory(Class<U> expectedType,
String fileName,
U root)
Get the object model factory |
protected
<U> org.jboss.xb.binding.ObjectModelFactory |
|
getObjectModelFactory(Class<U> expectedType,
org.jboss.virtual.VirtualFile file,
U root)
Get the object model factory |
protected
|
parse(Class<U> expectedType,
org.jboss.virtual.VirtualFile file,
Object root)
Parse file to produce expected class metadata. |
Methods inherited from class org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer |
accepts, accepts, allowsMultipleFiles, getAltMappings, getMetadataFile, handleMultipleFiles, init, isDeployable, 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 |
MultipleObjectModelFactoryDeployer
public MultipleObjectModelFactoryDeployer(Class<T> output,
Map<String,Class<?>> mappings)
MultipleObjectModelFactoryDeployer
public MultipleObjectModelFactoryDeployer(Class<T> output,
Map<String,Class<?>> mappings,
String suffix,
Class<?> suffixClass)
parse
protected <U> U parse(Class<U> expectedType,
org.jboss.virtual.VirtualFile file,
Object root)
throws Exception
- Description copied from class:
MultipleVFSParsingDeployer
- Parse file to produce expected class metadata.
Root doesn't have U signature, since it conflicts
with its usage in the parse(VFSDeployment unit, VirtualFile file, T root) method.
- Specified by:
parse
in class MultipleVFSParsingDeployer<T>
- Type Parameters:
U
- the expect type- Parameters:
expectedType
- the expected classfile
- the file to parseroot
- the previous root
- Returns:
- new metadata instance
- Throws:
Exception
- for any error
getObjectModelFactory
protected <U> org.jboss.xb.binding.ObjectModelFactory getObjectModelFactory(Class<U> expectedType,
org.jboss.virtual.VirtualFile file,
U root)
- Get the object model factory
- Type Parameters:
U
- the expect type- Parameters:
expectedType
- the expected classfile
- - the file we're about to parseroot
- - possibly null pre-existing root
- Returns:
- the object model factory
getObjectModelFactory
protected abstract <U> org.jboss.xb.binding.ObjectModelFactory getObjectModelFactory(Class<U> expectedType,
String fileName,
U root)
- Get the object model factory
- Type Parameters:
U
- the expect type- Parameters:
expectedType
- the expected classfileName
- - the fileNameroot
- - possibly null pre-existing root
- Returns:
- the object model factory
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.