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, withParameterGroupwithCustomParameter, withPropertygetDeclarationpublic 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 RouteElementDeclarationenricher - an enricher that should populate the given
RouteElementDeclarer with the route configurationthis declarerCopyright © 2017 MuleSoft, Inc.. All rights reserved.