public class HandlerChainFactory extends java.lang.Object implements HandlerFactory
Constructor and Description |
---|
HandlerChainFactory()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
MessageHandler |
create(HandlerContext context,
HandlerRole role)
Creates a ChainHandler that implements a chain of handlers.
|
void |
setCloseInReverse(boolean closeInReverse)
Configures whether the handlers in the chain should be closed in reverse
order.
|
void |
setHandleOutInReverse(boolean handleInReverse)
Configures whether the handlers in the chain should be called in reverse
for out/fault messages.
|
void |
setHandlerFactories(java.util.List<HandlerFactory> handlerFactories)
Configures the list of HandlerFactories to invoke to create the
handler chain.
|
public void setHandlerFactories(java.util.List<HandlerFactory> handlerFactories)
handlerFactories
- List of HandlerFactory objects.public void setHandleOutInReverse(boolean handleInReverse)
handleInReverse
- True if handlers should be called in reverse,
false if not. Default is true.public void setCloseInReverse(boolean closeInReverse)
closeInReverse
- True if handlers should be closed in reverse
order, false if not. Default is true.public MessageHandler create(HandlerContext context, HandlerRole role) throws GException
create
in interface HandlerFactory
context
- HandlerContext describing the scope of the handler chain.role
- HandlerRole of the created handler.GException
- Thrown if an error was encountered trying to
create the handler.?? 2022 Perforce Software, All rights reserved
This software is the confidential and proprietary information of Perforce, Inc. and is subject to copyright protection under laws of the United States of America and other countries. The use of this software should be in accordance with the license agreement terms you entered into with Perforce, Inc.