| java.lang.Object org.jboss.deployment.SuffixOrderHelper
SuffixOrderHelper | final public class SuffixOrderHelper (Code) | | SuffixOrderHelper.
This class wraps the SuffixOrder and EnhandedSuffixes attributes
of MainDeployer.
author: Dimitris Andreadis version: $Revision: 57205 $ |
Inner Class :final public static class EnhancedSuffix | |
Field Summary | |
final public static String[] | DEFAULT_ENHANCED_SUFFIXES Default EnhancedSuffixes
Those values are indicative - we just know they'll work with
the compiled order of subdeployers like the aop or ejb3,
but any order can be set using the EnhancedSuffixes
attribute and/or the individual subdeployer's relative order. | final public static int | DEFAULT_RELATIVE_ORDER | final public static Logger | log |
Method Summary | |
public void | addEnhancedSuffixes(String[] enhancedSuffixes) Add the specified enhanced suffixes in the correct
position(s) and regenerate the SuffixOrder, if needed.
A suffix that exists already and is marked as static
will be skipped. | public void | addSuffixes(String[] suffixes, int relativeOrder) Insert the specified suffixes in the correct position
and regenerate the SuffixOrder array, if needed.
A suffix that exists already and is marked as static
will be skipped. | public String[] | getEnhancedSuffixes() | public String[] | getSuffixOrder() Getter only for the SuffixOrder as known by the MainDeployer and the Scanners
The value is updated during init() with suffixes that remain constant. | public void | initialize() Initialise the SuffixOrder from EnhancedSuffixes.
If no enchangedSuffixes is specified, DEFAULT_ENHANCED_SUFFIXES
will be used. | public void | removeEnhancedSuffixes(String[] enhancedSuffixes) Remove the enhanced suffixes if they are not marked as static
and regenerate the SuffixOrder, if needed. | public void | removeSuffixes(String[] suffixes, int relativeOrder) Remove the specified suffixes if they are not marked as static
and regenerate the SuffixOrder, if needed. | public void | setEnhancedSuffixes(String[] enhancedSuffixes) |
DEFAULT_ENHANCED_SUFFIXES | final public static String[] DEFAULT_ENHANCED_SUFFIXES(Code) | | Default EnhancedSuffixes
Those values are indicative - we just know they'll work with
the compiled order of subdeployers like the aop or ejb3,
but any order can be set using the EnhancedSuffixes
attribute and/or the individual subdeployer's relative order.
The commented out entries indicate those are dynamically
added by their respective subdeployers when they register.
|
DEFAULT_RELATIVE_ORDER | final public static int DEFAULT_RELATIVE_ORDER(Code) | | A default relative order just before 900:.last
|
log | final public static Logger log(Code) | | The Logger
|
addEnhancedSuffixes | public void addEnhancedSuffixes(String[] enhancedSuffixes)(Code) | | Add the specified enhanced suffixes in the correct
position(s) and regenerate the SuffixOrder, if needed.
A suffix that exists already and is marked as static
will be skipped. Otherwise, duplicate entries are allowed.
|
addSuffixes | public void addSuffixes(String[] suffixes, int relativeOrder)(Code) | | Insert the specified suffixes in the correct position
and regenerate the SuffixOrder array, if needed.
A suffix that exists already and is marked as static
will be skipped. Otherwise, duplicate entries are allowed.
|
getEnhancedSuffixes | public String[] getEnhancedSuffixes()(Code) | | Getter for the EnhancedSuffixes attribute
the EnhancedSuffixes string array |
getSuffixOrder | public String[] getSuffixOrder()(Code) | | Getter only for the SuffixOrder as known by the MainDeployer and the Scanners
The value is updated during init() with suffixes that remain constant.
After that suffixes are added/removed using the corresponding methods.
the SuffixOrder string array |
initialize | public void initialize()(Code) | | Initialise the SuffixOrder from EnhancedSuffixes.
If no enchangedSuffixes is specified, DEFAULT_ENHANCED_SUFFIXES
will be used. Individual entries may contain an additional order
element of the form [order:]suffix, e.g. 100:.sar
The suffixes specified during init, will remain constant,
i.e. they can't be overriden or removed.
|
removeEnhancedSuffixes | public void removeEnhancedSuffixes(String[] enhancedSuffixes)(Code) | | Remove the enhanced suffixes if they are not marked as static
and regenerate the SuffixOrder, if needed.
|
removeSuffixes | public void removeSuffixes(String[] suffixes, int relativeOrder)(Code) | | Remove the specified suffixes if they are not marked as static
and regenerate the SuffixOrder, if needed.
|
setEnhancedSuffixes | public void setEnhancedSuffixes(String[] enhancedSuffixes)(Code) | | Setter for the EnhancedSuffixes attribute
Parameters: enhancedSuffixes - the EnhancedSuffixes string array |
|
|