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> T
get
(int index) Return the resolved attribute at the specified index.<T> T
Return the resolved attribute at the specified index.void
ifResolved
(Runnable task) void
Invoke the specifiedConsumer
with the resolved attributes.boolean
Specify 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 specifiedConsumer
with 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
-