Skip to content

Commit

Permalink
Add overloaded method to support existing subsystems outside the AS7 …
Browse files Browse the repository at this point in the history
…code base
  • Loading branch information
stuartwdouglas authored and n1hility committed May 1, 2012
1 parent 4476cde commit e5e8765
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ public abstract class AbstractDeploymentChainStep implements OperationStepHandle
public void addDeploymentProcessor(final String subsystemName, final Phase phase, final int priority, final DeploymentUnitProcessor processor) {
DeployerChainAddHandler.addDeploymentProcessor(subsystemName, phase, priority, processor);
}

@Override
public void addDeploymentProcessor(final Phase phase, final int priority, final DeploymentUnitProcessor processor) {
addDeploymentProcessor("", phase, priority, processor);
}
};

public final void execute(final OperationContext context, final ModelNode operation) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,18 @@ public interface DeploymentProcessorTarget {
* @param processor the processor to install
*/
void addDeploymentProcessor(String subsystemName, Phase phase, int priority, DeploymentUnitProcessor processor);


/**
* Add a deployment processor.
*
* This is a legacy method that does not take a subsystem name. A subsystem name
* of the empty string is assumed.
*
* @param phase the processor phase install into (must not be {@code null})
* @param priority the priority within the selected phase
* @param processor the processor to install
*/
@Deprecated
void addDeploymentProcessor(Phase phase, int priority, DeploymentUnitProcessor processor);
}

0 comments on commit e5e8765

Please sign in to comment.