Spring AMQP

org.springframework.amqp.core
Interface Declarable

All Known Subinterfaces:
Exchange
All Known Implementing Classes:
AbstractDeclarable, AbstractExchange, AnonymousQueue, Binding, CustomExchange, DirectExchange, FanoutExchange, FederatedExchange, HeadersExchange, Queue, TopicExchange, UniquelyNamedQueue

public interface Declarable

Classes implementing this interface can be auto-declared with the broker during context initialization by an AmqpAdmin. Registration can be limited to specific AmqpAdmins.

Since:
1.2
Author:
Gary Russell

Method Summary
 Collection<AmqpAdmin> getDeclaringAdmins()
          The collection of AmqpAdmins that should declare this object; if empty, all admins should declare.
 boolean shouldDeclare()
          Whether or not this object should be automatically declared by any AmqpAdmin.
 

Method Detail

shouldDeclare

boolean shouldDeclare()
Whether or not this object should be automatically declared by any AmqpAdmin.

Returns:
true if the object should be declared.

getDeclaringAdmins

Collection<AmqpAdmin> getDeclaringAdmins()
The collection of AmqpAdmins that should declare this object; if empty, all admins should declare.

Returns:
the collection.

Spring AMQP