@Component(value="cuba_UiComponentsGenerator")
public class UiComponentsGenerator
extends java.lang.Object
ComponentGenerationStrategy.UiComponents| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<ComponentGenerationStrategy> |
componentGenerationStrategies |
static java.lang.String |
NAME |
| Constructor and Description |
|---|
UiComponentsGenerator() |
| Modifier and Type | Method and Description |
|---|---|
Component |
generate(ComponentGenerationContext context)
Creates a component according to the given
ComponentGenerationContext. |
protected java.util.List<ComponentGenerationStrategy> |
getComponentGenerationStrategies() |
public static final java.lang.String NAME
@Inject protected java.util.List<ComponentGenerationStrategy> componentGenerationStrategies
public Component generate(ComponentGenerationContext context)
ComponentGenerationContext.
Trying to find ComponentGenerationStrategy implementations. If at least one strategy exists, then:
Ordered interface.null component.context - the ComponentGenerationContext instancejava.lang.IllegalArgumentException - if no component can be created for a given contextprotected java.util.List<ComponentGenerationStrategy> getComponentGenerationStrategies()