|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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.JAXBDeployer<T>
T
- the expected typepublic abstract class JAXBDeployer<T>
JAXBDeployer.
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 | |
---|---|
JAXBDeployer(Class<T> output)
Create a new JAXBDeployer. |
Method Summary | |
---|---|
protected Class<?>[] |
classesToBeBound()
Get classes to be bound. |
void |
create()
Create lifecycle |
protected javax.xml.bind.JAXBContext |
createContext()
Create context. |
void |
destroy()
Destroy lifecycle |
Map<String,Object> |
getProperties()
Get the properties. |
protected T |
parse(VFSDeploymentUnit unit,
org.jboss.virtual.VirtualFile file,
T root)
Parse a deployment |
void |
setClassesToBeBound(Class<?>... classesToBeBound)
Set the classes to be bound. |
void |
setProperties(Map<String,Object> properties)
Set the properties. |
void |
setSchemaLocation(String schemaLocation)
Set schema location. |
void |
setValidationEventHandler(javax.xml.bind.ValidationEventHandler validationEventHandler)
Set the validation event handler. |
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 |
Constructor Detail |
---|
public JAXBDeployer(Class<T> output)
output
- the output
IllegalArgumentException
- for a null outputMethod Detail |
---|
public Map<String,Object> getProperties()
public void setProperties(Map<String,Object> properties)
properties
- the properties.public void setClassesToBeBound(Class<?>... classesToBeBound)
classesToBeBound
- the classes to be bouondpublic void setSchemaLocation(String schemaLocation)
schemaLocation
- the schema locationpublic void setValidationEventHandler(javax.xml.bind.ValidationEventHandler validationEventHandler)
validationEventHandler
- the validation event handlerpublic void create() throws Exception
Exception
- for any problemprotected javax.xml.bind.JAXBContext createContext() throws Exception
Exception
- for any errorprotected Class<?>[] classesToBeBound()
public void destroy()
protected T parse(VFSDeploymentUnit unit, org.jboss.virtual.VirtualFile file, T root) throws Exception
AbstractVFSParsingDeployer
parse
in class AbstractVFSParsingDeployer<T>
unit
- the deployment unitfile
- the metadata fileroot
- - possibly null pre-existing root
Exception
- for any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |