public final class ConnectionProviderDeclarer extends ParameterizedDeclarer<ConnectionProviderDeclaration> implements HasModelProperties<ConnectionProviderDeclarer>
ConnectionProviderDeclaration through a fluent APIdeclaration| Constructor and Description |
|---|
ConnectionProviderDeclarer(ConnectionProviderDeclaration declaration)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
ConnectionProviderDeclarer |
createdWith(ConnectionProviderFactory factory)
Specifies the
ConnectionProviderFactory to be used to
create instances of the ConnectionProviders which are compliant
with the Declarer.declaration |
ConnectionProviderDeclarer |
describedAs(String description)
Adds a description to the provider
|
ConnectionProviderDeclarer |
whichGivesConnectionsOfType(Class<?> connectionType)
The
Class to which the second generic in the ConnectionProvider
interface is resolved to on the instances that the Declarer.declaration describes |
ConnectionProviderDeclarer |
withConnectionManagementType(ConnectionManagementType connectionManagementType)
Sets the type of connection management that the provider performs
|
ConnectionProviderDeclarer |
withModelProperty(ModelProperty modelProperty)
Adds the given
modelProperty |
withOptionalParameter, withRequiredParametergetDeclarationpublic ConnectionProviderDeclarer(ConnectionProviderDeclaration declaration)
declaration - the declaration object to be configuredpublic ConnectionProviderDeclarer describedAs(String description)
description - a descriptionthis declarerpublic ConnectionProviderDeclarer createdWith(ConnectionProviderFactory factory)
ConnectionProviderFactory to be used to
create instances of the ConnectionProviders which are compliant
with the Declarer.declarationfactory - a ConnectionProviderFactorythis declarerpublic ConnectionProviderDeclarer whichGivesConnectionsOfType(Class<?> connectionType)
Class to which the second generic in the ConnectionProvider
interface is resolved to on the instances that the Declarer.declaration describesconnectionType - a Classthis declarerpublic ConnectionProviderDeclarer withConnectionManagementType(ConnectionManagementType connectionManagementType)
connectionManagementType - a ConnectionManagementTypethis declarerpublic ConnectionProviderDeclarer withModelProperty(ModelProperty modelProperty)
modelPropertywithModelProperty in interface HasModelProperties<ConnectionProviderDeclarer>modelProperty - a ModelPropertythis declarerCopyright © 2016 MuleSoft, Inc.. All rights reserved.