public abstract class ConnectionStrategiesVerifierUtils extends Object
Constructor and Description |
---|
ConnectionStrategiesVerifierUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
hasAnyConnectManagementAnnotation(Method<Type> typeMethod) |
static void |
verifyConfigurableNamesDistinctConnectParamNames(List<Field> configurableElements,
NotificationGatherer gatherer,
Set<String> connectionParameterNames)
this method verify that no @Configurable/s in a Module have the same name than a one of the parameter of the @Connect Method.
|
static void |
verifyConfigurablesNames(Module module,
NotificationGatherer gatherer,
ConnectionComponent component) |
static void |
verifyConnectionComponentConfigurablesGetterAndSetter(NotificationGatherer gatherer,
ConnectionComponent component)
Helper method to check if a module has all its configurables well written.
|
static void |
verifyConnectorProcessorsParams(Module module,
NotificationGatherer gatherer,
Set<String> connectionParameterNames)
this method verify that no @Procesor parameter in a Module have the same name than a one of the parameter of the @Connect Method.
|
static void |
verifyNoConnectMethods(Module module,
NotificationGatherer gatherer,
ConnectionComponent component) |
static void |
verifyTestConnectionMethod(ConnectionComponent connectionComponent,
List<Method<Type>> methodsAnnotatedWithTestConnectivity,
NotificationGatherer gatherer)
Helper method to check if a method annotated with
TestConnectivity is properly written. |
public static void verifyNoConnectMethods(Module module, NotificationGatherer gatherer, ConnectionComponent component)
public static void verifyConfigurablesNames(Module module, NotificationGatherer gatherer, ConnectionComponent component)
public static boolean hasAnyConnectManagementAnnotation(Method<Type> typeMethod)
public static void verifyConnectionComponentConfigurablesGetterAndSetter(NotificationGatherer gatherer, ConnectionComponent component)
component
- the component to validategatherer
- to display errors
TODO: this method is duplicated in org.mule.devkit.generation.rest.HttpBasicAuthComponentVerifier. we should move this class so we can use this method in there.public static void verifyTestConnectionMethod(ConnectionComponent connectionComponent, List<Method<Type>> methodsAnnotatedWithTestConnectivity, NotificationGatherer gatherer)
TestConnectivity
is properly written.
Not intended to be used for connection management scenarios.connectionComponent
- the connection component to validatemethodsAnnotatedWithTestConnectivity
- the list of possible methods annotated with TestConnectivity
gatherer
- to display errorspublic static void verifyConfigurableNamesDistinctConnectParamNames(List<Field> configurableElements, NotificationGatherer gatherer, Set<String> connectionParameterNames)
configurableElements
- the module to notify its errorsgatherer
- the toolkit to gather all the errors/warningspublic static void verifyConnectorProcessorsParams(Module module, NotificationGatherer gatherer, Set<String> connectionParameterNames)
module
- the module to notify its errorsgatherer
- the toolkit to gather all the errors/warningsCopyright © 2010–2015 MuleSoft, Inc.. All rights reserved.