public class TCPAcceptorPreprocessor extends Object implements DocumentElementPreprocessor.ElementPreprocessor
TCPAcceptorPreprocessor is an DocumentElementPreprocessor.ElementPreprocessor that
introduces re-writes <tcp-acceptor> configuration elements, in
particular <local-address> declarations into an <address-provider> containing
a <local-address>.| Constructor and Description |
|---|
TCPAcceptorPreprocessor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
preprocess(ProcessingContext context,
XmlElement xmlElement)
Process an
XmlElement, optionally mutating it (or it's children) if required. |
public boolean preprocess(ProcessingContext context, XmlElement xmlElement) throws ConfigurationException
XmlElement, optionally mutating it (or it's children) if required.
Note: An implementation of this interface should avoid
attempting to traverse child XmlElements. If you wish to
manually traverse or change the entire document, you should instead use
a DocumentPreprocessor.
preprocess in interface DocumentElementPreprocessor.ElementPreprocessorcontext - the ProcessingContext in which the pre-processing is occurringxmlElement - the XmlElement to preprocesstrue if the specified XmlElement should be
re-preprocessed by this and other DocumentElementPreprocessor.ElementPreprocessors
due to the XmlElement being modified, false
otherwise.ConfigurationException - if during pre-processing of the XmlElement a configuration
issue was discovered (or if pre-processing fails for some reason)