Package org.springframework.amqp.core
Class Declarables
- java.lang.Object
-
- org.springframework.amqp.core.Declarables
-
public class Declarables extends java.lang.Object
A collection ofDeclarable
objects; used to declare multiple objects on the broker using a single bean declaration for the collection.- Since:
- 2.1
- Author:
- Gary Russell, Björn Michael
-
-
Constructor Summary
Constructors Constructor Description Declarables(java.util.Collection<? extends Declarable> declarables)
Declarables(Declarable... declarables)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<Declarable>
getDeclarables()
<T> java.util.List<T>
getDeclarablesByType(java.lang.Class<T> type)
Return the elements that are instances of the provided class.java.lang.String
toString()
-
-
-
Constructor Detail
-
Declarables
public Declarables(Declarable... declarables)
-
Declarables
public Declarables(java.util.Collection<? extends Declarable> declarables)
-
-
Method Detail
-
getDeclarables
public java.util.Collection<Declarable> getDeclarables()
-
getDeclarablesByType
public <T> java.util.List<T> getDeclarablesByType(java.lang.Class<T> type)
Return the elements that are instances of the provided class.- Type Parameters:
T
- The type.- Parameters:
type
- the type's class.- Returns:
- the filtered list.
- Since:
- 2.2
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-