public class OAuth2StrategyUtilsResolver extends Object
Constructor and Description |
---|
OAuth2StrategyUtilsResolver() |
Modifier and Type | Method and Description |
---|---|
static OAuthCapability |
getOAuthCapability(Module module)
Given a module that supports OAuth2, it returns the OAuthCapability (it doesn't care if it is within the same @Connector
or using a component)
|
static GeneratedExpression |
getOAuthConcreteComponent(Module module,
GeneratedExpression connector,
Context ctx)
Given a subclass of the connector, modeled in the future class to be generated in the parameter
connector ,
this method will resolve if it has to hit the actual connector or if it has to hit the strategy object |
static boolean |
hasOAuth2Component(Module module) |
public static OAuthCapability getOAuthCapability(Module module)
module
- public static GeneratedExpression getOAuthConcreteComponent(Module module, GeneratedExpression connector, Context ctx)
connector
,
this method will resolve if it has to hit the actual connector or if it has to hit the strategy objectmodule
- connector
- reference of the concrete element that will access some specific variable from the connector's subclass adapterpublic static boolean hasOAuth2Component(Module module)
Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.