T
- the component sources typepublic interface SourceAwareComponent<T extends ComponentSources> extends Component
Modifier and Type | Method and Description |
---|---|
default T |
getSources()
Returns the component sources of this component.
|
default void |
sources(Action<? super T> action)
Configures the component sources using the specified configuration action.
|
default void |
sources(groovy.lang.Closure<Void> closure)
Configures the component sources using the specified configuration closure.
|
default T getSources()
default void sources(Action<? super T> action)
action
- the configuration action, must not be nulldefault void sources(@DelegatesTo(type="T",strategy=1) groovy.lang.Closure<Void> closure)
closure
- the configuration closure, must not be null