public abstract class AbstractDeclarable extends Object implements Declarable
Declarable classes.| Constructor and Description | 
|---|
| AbstractDeclarable() | 
| AbstractDeclarable(Map<String,Object> arguments)Construct an instance with the supplied arguments, or an empty map if null. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addArgument(String argName,
           Object argValue)Add an argument to the declarable. | 
| Map<String,Object> | getArguments() | 
| Collection<?> | getDeclaringAdmins()The collection of  AmqpAdmins that should declare this
 object; if empty, all admins should declare. | 
| boolean | isIgnoreDeclarationExceptions()Should ignore exceptions (such as mismatched args) when declaring. | 
| Object | removeArgument(String name)Remove an argument from the declarable. | 
| void | setAdminsThatShouldDeclare(Object... adminArgs)The  AmqpAdmins that should declare this object; default is
 all admins. | 
| void | setIgnoreDeclarationExceptions(boolean ignoreDeclarationExceptions)Set to true to ignore exceptions such as mismatched properties when declaring. | 
| void | setShouldDeclare(boolean shouldDeclare)Whether or not this object should be automatically declared
 by any  AmqpAdmin. | 
| boolean | shouldDeclare()Whether or not this object should be automatically declared
 by any  AmqpAdmin. | 
public boolean shouldDeclare()
DeclarableAmqpAdmin.shouldDeclare in interface Declarablepublic void setShouldDeclare(boolean shouldDeclare)
AmqpAdmin. Default is true.shouldDeclare - true or false.public Collection<?> getDeclaringAdmins()
DeclarableAmqpAdmins that should declare this
 object; if empty, all admins should declare.getDeclaringAdmins in interface Declarablepublic boolean isIgnoreDeclarationExceptions()
DeclarableisIgnoreDeclarationExceptions in interface Declarablepublic void setIgnoreDeclarationExceptions(boolean ignoreDeclarationExceptions)
ignoreDeclarationExceptions - the ignoreDeclarationExceptions.public void setAdminsThatShouldDeclare(Object... adminArgs)
DeclarableAmqpAdmins that should declare this object; default is
 all admins.
 setAdminsThatShouldDeclare((AmqpAdmin) null) or
 setAdminsThatShouldDeclare((AmqpAdmin[]) null)). Clearing the collection resets
 the behavior such that all admins will declare the object.setAdminsThatShouldDeclare in interface DeclarableadminArgs - The admins.public void addArgument(String argName, Object argValue)
DeclarableaddArgument in interface DeclarableargName - the argument name.argValue - the argument value.public Object removeArgument(String name)
DeclarableremoveArgument in interface Declarablename - the argument name.