Class InjectedElementAttributes
java.lang.Object
org.springframework.beans.factory.generator.config.InjectedElementAttributes
Resolved attributes of an injected element.
- Since:
- 6.0
- Author:
- Stephane Nicoll
-
Method Summary
Modifier and TypeMethodDescription<T> Tget(int index) Return the resolved attribute at the specified index.<T> TReturn the resolved attribute at the specified index.voidifResolved(Runnable task) voidInvoke the specifiedConsumerwith the resolved attributes.booleanSpecify if the attributes have been resolved.
-
Method Details
-
isResolved
public boolean isResolved()Specify if the attributes have been resolved.- Returns:
- the resolution of the injection
-
ifResolved
- Parameters:
task- the task to invoke if attributes are available
-
ifResolved
public void ifResolved(BeanDefinitionRegistrar.ThrowableConsumer<InjectedElementAttributes> attributes) Invoke the specifiedConsumerwith the resolved attributes.- Parameters:
attributes- the consumer to invoke if this instance is resolved
-
get
public <T> T get(int index) Return the resolved attribute at the specified index.- Type Parameters:
T- the type of the attribute- Parameters:
index- the attribute index- Returns:
- the attribute
-
get
Return the resolved attribute at the specified index.- Type Parameters:
T- the type of the attribute- Parameters:
index- the attribute indextype- the attribute type- Returns:
- the attribute
-