@Deprecated public class ConnectorUtils extends ConnectorSPIModelHelper
ConnectorUtil
Utilities related to connector processing.Constructor and Description |
---|
ConnectorUtils()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static BMap<String,BValue> |
createAndGetStruct(Context context,
String packagePath,
String structName)
Deprecated.
This method is used to create a struct given the context and required struct details.
|
static BallerinaServerConnector |
getBallerinaServerConnector(Context context,
String protocolPkgPath)
Deprecated.
|
static BallerinaServerConnector |
getBallerinaServerConnector(ProgramFile programFile,
String protocolPkgPath)
Deprecated.
|
createService, createStruct, getAnnotationVariable
public static BMap<String,BValue> createAndGetStruct(Context context, String packagePath, String structName) throws BallerinaConnectorException
context
- to get program file.packagePath
- of the struct.structName
- of the struct.BallerinaConnectorException
- if an error occurs@Deprecated public static BallerinaServerConnector getBallerinaServerConnector(ProgramFile programFile, String protocolPkgPath)
BallerinaServerConnector
object which is at
Ballerina level using programme file.programFile
- Program file.protocolPkgPath
- Package of the registered protocol of the server connector.@Deprecated public static BallerinaServerConnector getBallerinaServerConnector(Context context, String protocolPkgPath)
BallerinaServerConnector
object which is at
Ballerina level using context of the programme.context
- Context
of the programme.protocolPkgPath
- Package of the registered protocol of the server connector.Copyright © 2018 WSO2. All rights reserved.