@Deprecated public class ConnectorUtils extends ConnectorSPIModelHelper
ConnectorUtil Utilities related to connector processing.| Constructor and Description |
|---|
ConnectorUtils()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static BStruct |
createAndGetStruct(Context context,
String packagePath,
String structName)
Deprecated.
This method is used to create a struct given the context and required struct details.
|
static BStruct |
createStruct(Resource resource,
String packageName,
String structName)
Deprecated.
This method is used to create a struct given the resource and required struct details.
|
static BallerinaServerConnector |
getBallerinaServerConnector(Context context,
String protocolPkgPath)
Deprecated.
|
static BallerinaServerConnector |
getBallerinaServerConnector(ProgramFile programFile,
String protocolPkgPath)
Deprecated.
|
createService, createStruct, getAnnotationVariablepublic static BStruct createStruct(Resource resource, String packageName, String structName)
resource - to get required details.packageName - package name of the struct definition.structName - struct name.public static BStruct 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.