站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 system API Documentation 英文版文档

SuffixOrderHelper (JBoss System API) - JBoss 4.0.1 sp1 system API Documentation 英文版文档


org.jboss.deployment
Class SuffixOrderHelper

java.lang.Object
  extended byorg.jboss.deployment.SuffixOrderHelper

public class SuffixOrderHelper
extends Object

SuffixOrderHelper. This class wraps the SuffixOrder and EnhandedSuffixOrder attributes of MainDeployer.

Version:
$Revision: 1.1.2.1 $
Author:
Dimitris Andreadis

Field Summary
static String[] DEFAULT_ENHANCED_SUFFIX_ORDER
          Default EnhancedSuffixOrder 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 EnhancedSuffixOrder attribute and/or the individual subdeployer's relative order.
 
Constructor Summary
SuffixOrderHelper(DeploymentSorter sorter)
           
 
Method Summary
 void addSuffixes(String[] suffixes, int order)
          Insert the specified suffixes in the correct position and regenerate the SuffixOrder array, if needed.
 String[] getEnhancedSuffixOrder()
          Getter for the EnhancedSuffixOrder attribute
 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.
 void init()
          Initialise the SuffixOrder from the EnhancedSuffixOrder
 void removeSuffixes(String[] suffixes, int order)
          Remove the specified suffixes if they are not marked as fixed and regenerate the SuffixOrder, if needed.
 void setEnhancedSuffixOrder(String[] enhancedSuffixOrder)
          Setter for the EnhancedSuffixOrder attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ENHANCED_SUFFIX_ORDER

public static final String[] DEFAULT_ENHANCED_SUFFIX_ORDER
Default EnhancedSuffixOrder 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 EnhancedSuffixOrder attribute and/or the individual subdeployer's relative order.

Constructor Detail

SuffixOrderHelper

public SuffixOrderHelper(DeploymentSorter sorter)
Method Detail

getSuffixOrder

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. After that suffixes are added/removed using the corresponding methods.

Returns:
the SuffixOrder string array

getEnhancedSuffixOrder

public String[] getEnhancedSuffixOrder()
Getter for the EnhancedSuffixOrder attribute

Returns:
the EnhancedSuffixOrder string array

setEnhancedSuffixOrder

public void setEnhancedSuffixOrder(String[] enhancedSuffixOrder)
Setter for the EnhancedSuffixOrder attribute. Individual entries may contain an additional order element of the form [order:]suffix e.g. 070:sar During init() the value of SuffixOrder will be updated based on the EnhancedSuffixOrder value.

Parameters:
enhancedSuffixOrder - String array

init

public void init()
Initialise the SuffixOrder from the EnhancedSuffixOrder


addSuffixes

public void addSuffixes(String[] suffixes,
                        int order)
Insert the specified suffixes in the correct position and regenerate the SuffixOrder array, if needed. If a suffix exists, skip it

Parameters:
suffixes -
order -

removeSuffixes

public void removeSuffixes(String[] suffixes,
                           int order)
Remove the specified suffixes if they are not marked as fixed and regenerate the SuffixOrder, if needed.

Parameters:
suffixes -
order -


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.