public final class BLangConnectorSPIUtil extends Object
| Constructor and Description |
|---|
BLangConnectorSPIUtil() |
| Modifier and Type | Method and Description |
|---|---|
static BStruct |
createBStruct(Context context,
String pkgPath,
String structName,
Object... values)
Creates a VM struct value.
|
static BStruct |
createBStruct(ProgramFile programFile,
String pkgPath,
String structName,
Object... values) |
static BStruct |
createObject(Context context,
String pkgPath,
String structName,
BValue... values) |
static BStruct |
createObject(ProgramFile programFile,
String pkgPath,
String structName,
BValue... values) |
static Struct |
getConnectorEndpointStruct(Context context)
Get ConnectorEndPoint struct.
|
static BStruct |
getPackageEndpoint(ProgramFile programFile,
String pkgName,
String endpointName) |
static Service |
getService(ProgramFile programFile,
BServiceType serviceType) |
static Service |
getServiceFromType(ProgramFile programFile,
Value value) |
static Service |
getServiceRegistered(Context context)
Returns Service registered.
|
static Struct |
toStruct(BStruct bStruct)
Wrap BVM struct value to
Struct |
public static Struct getConnectorEndpointStruct(Context context)
context - current invocation context.public static Service getServiceRegistered(Context context)
context - invocation Contextpublic static BStruct createBStruct(Context context, String pkgPath, String structName, Object... values)
context - current contextpkgPath - package path of the structstructName - name of the structvalues - values to be copied to struct field in the defined orderpublic static BStruct createBStruct(ProgramFile programFile, String pkgPath, String structName, Object... values)
public static BStruct createObject(Context context, String pkgPath, String structName, BValue... values)
public static BStruct createObject(ProgramFile programFile, String pkgPath, String structName, BValue... values)
public static Struct toStruct(BStruct bStruct)
StructbStruct - value.public static Service getServiceFromType(ProgramFile programFile, Value value)
public static BStruct getPackageEndpoint(ProgramFile programFile, String pkgName, String endpointName)
public static Service getService(ProgramFile programFile, BServiceType serviceType)
Copyright © 2018 WSO2. All rights reserved.