public abstract class ComponentElementDeclarer<E extends ComponentElementDeclarer,D extends ComponentElementDeclaration> extends ParameterizedElementDeclarer<E,D> implements HasNestedComponentDeclarer<E>, HasNestedRoutesDeclaration<E>
ComponentElementDeclaration
through a fluent APIdeclaration
Modifier and Type | Method and Description |
---|---|
E |
withComponent(ComponentElementDeclaration component)
Adds a
component to the declaration being built |
E |
withConfig(String configRefName) |
E |
withRoute(RouteElementDeclaration component)
Adds a
component to the declaration being built |
E |
withRoute(String name,
Consumer<RouteElementDeclarer> enricher)
Adds a
component to the declaration being built |
withParameterGroup, withParameterGroup
withCustomParameter, withProperty
getDeclaration
public E withComponent(ComponentElementDeclaration component)
component
to the declaration being builtwithComponent
in interface HasNestedComponentDeclarer<E extends ComponentElementDeclarer>
component
- the component
to addthis
declarerpublic E withRoute(RouteElementDeclaration component)
component
to the declaration being builtwithRoute
in interface HasNestedRoutesDeclaration<E extends ComponentElementDeclarer>
component
- the component
to addthis
declarerpublic E withRoute(String name, Consumer<RouteElementDeclarer> enricher)
component
to the declaration being builtwithRoute
in interface HasNestedRoutesDeclaration<E extends ComponentElementDeclarer>
name
- the name
of the new RouteElementDeclaration
enricher
- an enricher that should populate the given
RouteElementDeclarer
with the route configurationthis
declarerCopyright © 2018. All rights reserved.