org.apache.qpid.server.exchange
Class DefaultExchangeFactory

java.lang.Object
  extended by org.apache.qpid.server.exchange.DefaultExchangeFactory
All Implemented Interfaces:
ExchangeFactory

public class DefaultExchangeFactory
extends Object
implements ExchangeFactory


Constructor Summary
DefaultExchangeFactory(VirtualHost host)
           
 
Method Summary
 Exchange createExchange(org.apache.qpid.framing.AMQShortString exchange, org.apache.qpid.framing.AMQShortString type, boolean durable, boolean autoDelete, int ticket)
           
 Exchange createExchange(String exchange, String type, boolean durable, boolean autoDelete)
           
 Collection<ExchangeType<? extends Exchange>> getPublicCreatableTypes()
           
 Collection<ExchangeType<? extends Exchange>> getRegisteredTypes()
           
 void initialise(VirtualHostConfiguration hostConfig)
           
 void registerExchangeType(ExchangeType<? extends Exchange> type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultExchangeFactory

public DefaultExchangeFactory(VirtualHost host)
Method Detail

registerExchangeType

public void registerExchangeType(ExchangeType<? extends Exchange> type)

getRegisteredTypes

public Collection<ExchangeType<? extends Exchange>> getRegisteredTypes()
Specified by:
getRegisteredTypes in interface ExchangeFactory

getPublicCreatableTypes

public Collection<ExchangeType<? extends Exchange>> getPublicCreatableTypes()
Specified by:
getPublicCreatableTypes in interface ExchangeFactory

createExchange

public Exchange createExchange(String exchange,
                               String type,
                               boolean durable,
                               boolean autoDelete)
                        throws org.apache.qpid.AMQException
Specified by:
createExchange in interface ExchangeFactory
Throws:
org.apache.qpid.AMQException

createExchange

public Exchange createExchange(org.apache.qpid.framing.AMQShortString exchange,
                               org.apache.qpid.framing.AMQShortString type,
                               boolean durable,
                               boolean autoDelete,
                               int ticket)
                        throws org.apache.qpid.AMQException
Specified by:
createExchange in interface ExchangeFactory
Throws:
org.apache.qpid.AMQException

initialise

public void initialise(VirtualHostConfiguration hostConfig)
Specified by:
initialise in interface ExchangeFactory


Licensed to the Apache Software Foundation