Examples of RegistryService


Examples of org.wso2.carbon.registry.core.service.RegistryService

                .getServerConfigurationInformation().getSynapseXMLLocation());
        return synapseConfig;
    }

    private UserRegistry getRegistry() {
        RegistryService registrySvc = ServiceBusInitializer.getRegistryService();
        if (registrySvc == null) {
            log.warn("Unable to access the registry service");
            return null;
        }

        try {
            return registrySvc.getConfigSystemRegistry();
        } catch (RegistryException e) {
            log.error("Error while obtaining a system registry instance", e);
            return null;
        }
    }
View Full Code Here

Examples of org.wso2.carbon.registry.core.service.RegistryService

    public static String getRelativeUrl() {
        BundleContext context = CarbonUIUtil.getBundleContext();
        ServiceReference reference =
                context.getServiceReference(RegistryService.class.getName());
        RegistryService registryService = (RegistryService) context.getService(reference);
        String url = null;
        try {
            Registry systemRegistry = registryService.getConfigSystemRegistry();
            Resource resource = systemRegistry.get(RegistryResources.CONNECTION_PROPS);
            String servicePath = resource.getProperty("service-path");
            String contextRoot = resource.getProperty("context-root");
            contextRoot = contextRoot.equals("/") ? "" : contextRoot;
            url = contextRoot + servicePath + "/WSDL2CodeService";
View Full Code Here

Examples of org.wso2.carbon.registry.core.service.RegistryService

    return resourceKey;

  }

  private UserRegistry getRegistry() {
    RegistryService registrySvc = ServiceBusInitializer.getRegistryService();
    if (registrySvc == null) {
      log.warn("Unable to access the registry service");
      return null;
    }

    try {
      return registrySvc.getRegistry();
    } catch (RegistryException e) {
      log.error("Error while obtaining a system registry instance", e);
      return null;
    }
  }
View Full Code Here

Examples of org.wso2.carbon.registry.core.service.RegistryService

    public static String getRelativeUrl() {
        BundleContext context = CarbonUIUtil.getBundleContext();
        ServiceReference reference =
                context.getServiceReference(RegistryService.class.getName());
        RegistryService registryService = (RegistryService) context.getService(reference);
        String url = null;
        try {
            Registry systemRegistry = registryService.getConfigSystemRegistry();
            Resource resource = systemRegistry.get(RegistryResources.CONNECTION_PROPS);
            String servicePath = resource.getProperty("service-path");
            String contextRoot = resource.getProperty("context-root");
            contextRoot = contextRoot.equals("/") ? "" : contextRoot;
            url = contextRoot + servicePath + "/WSDL2CodeService";
View Full Code Here

Examples of org.wso2.carbon.registry.core.service.RegistryService

        Enumeration enumeration = bundleContext.getBundle().getEntryPaths(reportResource);
        if (enumeration == null) {
            return;
        }
        try {
            RegistryService registryService = ReportingComponent.getRegistryService();
            Registry registry = registryService.getConfigSystemRegistry();
            registry.beginTransaction();
            Resource reportFilesResource = registry.newResource();
            InputStream xmlStream = null;
            try{
            while (enumeration.hasMoreElements()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.