org.jboss.deployers.vfs.plugins.structure.jar
Class JARStructure

java.lang.Object
  extended by org.jboss.deployers.vfs.spi.structure.helpers.AbstractStructureDeployer
      extended by org.jboss.deployers.vfs.plugins.structure.AbstractVFSStructureDeployer
          extended by org.jboss.deployers.vfs.plugins.structure.jar.JARStructure
All Implemented Interfaces:
Ordered, StructureDeployer

public class JARStructure
extends AbstractVFSStructureDeployer

JARStructure.

Version:
$Revision: 1.1 $
Author:
Adrian Brock, 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.vfs.spi.structure.helpers.AbstractStructureDeployer
log
 
Fields inherited from interface org.jboss.deployers.spi.Ordered
COMPARATOR
 
Constructor Summary
JARStructure()
          Create a new JARStructure.
JARStructure(Set<String> suffixes)
          Sets the default relative order 10000.
 
Method Summary
 void addJarExtension(JarExtensionProvider provider)
           
 boolean determineStructure(StructureContext structureContext)
          Determine the structure of a deployment
 Set<String> getSuffixes()
          Gets the set of suffixes recognised as jars
 void removeJarExtension(JarExtensionProvider provider)
           
 void setSuffixes(Set<String> suffixes)
          Gets the set of suffixes recognised as jars
 
Methods inherited from class org.jboss.deployers.vfs.plugins.structure.AbstractVFSStructureDeployer
createAnnotationEnvironment, setExcluded, setFilter, setIncluded, setRecurseFilter
 
Methods inherited from class org.jboss.deployers.vfs.spi.structure.helpers.AbstractStructureDeployer
addAllChildren, addAllChildren, addCandidateAnnotation, addChildren, addChildren, addClassPath, applyContextInfo, applyMetadataPath, applyMetadataPaths, applyStructure, checkCandidateAnnotations, createContext, createContext, createContext, getCandidateAnnotations, getCandidateStructureVisitorFactory, getRelativeOrder, getRelativePath, getRelativePath, isLeaf, isSupportsCandidateAnnotations, setCandidateAnnotations, setCandidateStructureVisitorFactory, setContextInfoOrder, setRelativeOrder, setSupportsCandidateAnnotations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JARStructure

public JARStructure()
Create a new JARStructure. with the default suffixes


JARStructure

public JARStructure(Set<String> suffixes)
Sets the default relative order 10000.

Parameters:
suffixes - the suffixes
Method Detail

getSuffixes

public Set<String> getSuffixes()
Gets the set of suffixes recognised as jars

Returns:
the set of suffixes

setSuffixes

public void setSuffixes(Set<String> suffixes)
Gets the set of suffixes recognised as jars

Parameters:
suffixes - - the set of suffixes

addJarExtension

public void addJarExtension(JarExtensionProvider provider)

removeJarExtension

public void removeJarExtension(JarExtensionProvider provider)

determineStructure

public boolean determineStructure(StructureContext structureContext)
                           throws DeploymentException
Description copied from interface: StructureDeployer
Determine the structure of a deployment

Parameters:
structureContext - the structure context
Returns:
true when it recognised the context
Throws:
DeploymentException - for an error


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