com.ibm.websphere.fabric.da.plugin
Interface AssemblyErrorHandler
public interface AssemblyErrorHandler
Provides custom logic for processing Dynamic Assembler failures.
Instances of this plugin are invoked by the Dynamic Assembler to which they
are wired.
Implementations must be thread safe.
The recommended implementation of this interface utilizes the visitor
pattern:
public class MyAssemblyErrorHandlerPlugin implements AssemblyErrorHandler {
private FailureVisitor myFailureVisitor =
new FailureVisitor() {
public Outcome handleFailure(MediationFailure mediationFailure) {
// Inspect mediationFailure, do any necessary processing,
// and return the appropriate Outcome.
return Outcome.ERROR_HANDLED;
}
public Outcome handleFailure(InfrastructureFailure infrastructureFailure) {
// Ignore for now.
return Outcome.IGNORED;
}
};
public Outcome handleOneWayFailure(MediationFailure mediationFailure) {
return mediationFailure.accept(myFailureVisitor);
}
public Outcome handleTwoWayFailure(MediationFailure mediationFailure) {
return Outcome.IGNORED;
}
public Outcome handleInfrastructureFailure(InfrastructureFailure infrastructureFailure) {
return Outcome.IGNORED;
}
}
- Since:
- WBS Fabric 6.1.2
- Author:
- pmschnei@us.ibm.com
- See Also:
InfrastructureFailure
,
MediationFailure
,
Outcome
handleOneWayFailure
Outcome handleOneWayFailure(MediationFailure mediationFailure)
handleTwoWayFailure
Outcome handleTwoWayFailure(MediationFailure mediationFailure)
handleInfrastructureFailure
Outcome handleInfrastructureFailure(InfrastructureFailure infrastructureFailure)
- Note Unused in 6.1.2.
Copyright © 2002-2009 IBM. All Rights Reserved.