public abstract class AbstractComponentManager extends Object
Constructor and Description |
---|
AbstractComponentManager(List<? extends Component> components) |
Modifier and Type | Method and Description |
---|---|
protected <T extends Component> |
componentFor(Class<? extends Component> clazz)
Given a class
Component s, this method will return (if exists) a component that is assignable from clazz
and also that component is handled by ComponentCallbackValidator . |
protected <T extends Component> |
componentsFor(Class<T> clazz)
Given a class
Component s, this method will return (if exists) all components that is assignable from clazz
and also those components are handled by ComponentCallbackValidator . |
static <T extends Component> |
componentsFor(Class<T> clazz,
List<? extends Component> components)
Given a list of
Component s, this method will return a subset of the elements that are assignable from
clazz |
protected List<? extends Component> |
getComponents() |
protected abstract ComponentCallbackValidator |
getValidator() |
protected void |
setComponents(List<? extends Component> components) |
protected <T extends Component> com.google.common.base.Optional<T> componentFor(Class<? extends Component> clazz)
Component
s, this method will return (if exists) a component that is assignable from clazz
and also that component is handled by ComponentCallbackValidator
.
To make this method work, any subclass must implement getValidator()
, applying the concrete signature of
the class, i.e.: ModuleComponent
, or ProcessorComponent
T
- type of the list to be returned, which must match the interfaceclazz
- to discriminate the subset of the componentsprotected <T extends Component> List<T> componentsFor(Class<T> clazz)
Component
s, this method will return (if exists) all components that is assignable from clazz
and also those components are handled by ComponentCallbackValidator
.
To make this method work, any subclass must implement getValidator()
, applying the concrete signature of
the class, i.e.: ModuleComponent
, or ProcessorComponent
T
- type of the list to be returned, which must match the interfaceclazz
- to discriminate the subset of the componentspublic static <T extends Component> List<T> componentsFor(Class<T> clazz, List<? extends Component> components)
Component
s, this method will return a subset of the elements that are assignable from
clazz
T
- type of the list to be returned, which must match the interfaceclazz
- to discriminate the subset of the componentscomponents
- components
that are assignable from clazz
protected abstract ComponentCallbackValidator getValidator()
Component
interfaceCopyright © 2010–2015 MuleSoft, Inc.. All rights reserved.