Class CompositeDestinationInterceptor
- java.lang.Object
-
- org.apache.activemq.broker.region.CompositeDestinationInterceptor
-
- All Implemented Interfaces:
DestinationInterceptor
public class CompositeDestinationInterceptor extends Object implements DestinationInterceptor
Represents a Composite Pattern of aDestinationInterceptor
-
-
Constructor Summary
Constructors Constructor Description CompositeDestinationInterceptor(DestinationInterceptor[] interceptors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
create(Broker broker, ConnectionContext context, ActiveMQDestination destination)
DestinationInterceptor[]
getInterceptors()
Destination
intercept(Destination destination)
void
remove(Destination destination)
void
setInterceptors(DestinationInterceptor[] interceptors)
-
-
-
Constructor Detail
-
CompositeDestinationInterceptor
public CompositeDestinationInterceptor(DestinationInterceptor[] interceptors)
-
-
Method Detail
-
intercept
public Destination intercept(Destination destination)
- Specified by:
intercept
in interfaceDestinationInterceptor
-
remove
public void remove(Destination destination)
- Specified by:
remove
in interfaceDestinationInterceptor
-
create
public void create(Broker broker, ConnectionContext context, ActiveMQDestination destination) throws Exception
- Specified by:
create
in interfaceDestinationInterceptor
- Throws:
Exception
-
setInterceptors
public void setInterceptors(DestinationInterceptor[] interceptors)
-
getInterceptors
public DestinationInterceptor[] getInterceptors()
-
-