public class JarServiceCreatorAdmin
extends org.wso2.carbon.core.AbstractAdmin
| Modifier and Type | Field and Description |
|---|---|
static org.osgi.framework.BundleContext |
bundleContext |
| Constructor and Description |
|---|
JarServiceCreatorAdmin() |
| Modifier and Type | Method and Description |
|---|---|
void |
createAndDeployService(String directoryPath,
String serviceHierarchy,
String serviceGroupName,
Service[] data)
Creates and deploys a service.
|
Service[] |
getClassMethods(String directoryPath,
Service[] services)
This method will list all the public methods for the given classes.
|
UploadArtifactsResponse |
upload(String serviceGroupName,
Resource wsdl,
Resource[] resources) |
getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamppublic UploadArtifactsResponse upload(String serviceGroupName, Resource wsdl, Resource[] resources) throws DuplicateServiceGroupException, JarUploadException
public Service[] getClassMethods(String directoryPath, Service[] services) throws org.apache.axis2.AxisFault, DuplicateServiceException
directoryPath - Temp dir innto which all jars were uploadedservices - Selected classesorg.apache.axis2.AxisFault - ErrorDuplicateServiceException - If a service with a given name already existspublic void createAndDeployService(String directoryPath, String serviceHierarchy, String serviceGroupName, Service[] data) throws org.apache.axis2.AxisFault, DuplicateServiceException, DuplicateServiceGroupException
archiveId. In addition,
a services.xml will be created, and all of the
serviceClasses will be added as services.directoryPath - archive idserviceHierarchy - hierarchical part of the serviceserviceGroupName - the serviceGroupNamedata - info array. data contains the excluded method names.org.apache.axis2.AxisFault - will be thrownDuplicateServiceException - If a service which already exists is trying to be createdDuplicateServiceGroupException - If the sepcified service group already existsCopyright © 2019 WSO2. All rights reserved.