Package org.apache.stratos.common.util

Examples of org.apache.stratos.common.util.StratosConfiguration


    protected void activate(ComponentContext context) {
        try {

            // Loading the stratos configurations from Stratos.xml
            if (CommonUtil.getStratosConfig() == null) {
                StratosConfiguration stratosConfig = CommonUtil.loadStratosConfiguration();
                CommonUtil.setStratosConfig(stratosConfig);
            }

            // Loading the EULA
            if (CommonUtil.getEula() == null) {
View Full Code Here


    protected void activate(ComponentContext context) {
        try {
            bundleContext = context.getBundleContext();
            if (CommonUtil.getStratosConfig() == null) {
                StratosConfiguration stratosConfig = CommonUtil.loadStratosConfiguration();
                CommonUtil.setStratosConfig(stratosConfig);
            }

            // Loading the EULA
            if (CommonUtil.getEula() == null) {
                String eula = CommonUtil.loadTermsOfUsage();
                CommonUtil.setEula(eula);
            }
           
      packageInfos = new PackageInfoHolder();
      context.getBundleContext().registerService(
          PackageInfoHolder.class.getName(), packageInfos, null);

            //Register manager configuration OSGI service
            try {
                StratosConfiguration stratosConfiguration = CommonUtil.loadStratosConfiguration();
                bundleContext.registerService(StratosConfiguration.class.getName(), stratosConfiguration, null);
                if (log.isDebugEnabled()) {
                    log.debug("******* Cloud Common Service bundle is activated ******* ");
                }
            } catch (Exception ex) {
View Full Code Here

    protected void activate(ComponentContext context) {
        try {

            // Loading the stratos configurations from Stratos.xml
            if (CommonUtil.getStratosConfig() == null) {
                StratosConfiguration stratosConfig = CommonUtil.loadStratosConfiguration();
                CommonUtil.setStratosConfig(stratosConfig);
            }

            // Loading the EULA
            if (CommonUtil.getEula() == null) {
View Full Code Here

    protected void activate(ComponentContext context) {
        try {
            bundleContext = context.getBundleContext();
            if (CommonUtil.getStratosConfig() == null) {
                StratosConfiguration stratosConfig = CommonUtil.loadStratosConfiguration();
                CommonUtil.setStratosConfig(stratosConfig);
            }

            // Loading the EULA
            if (CommonUtil.getEula() == null) {
                String eula = CommonUtil.loadTermsOfUsage();
                CommonUtil.setEula(eula);
            }
           
      //packageInfos = new PackageInfoHolder();
      //context.getBundleContext().registerService(
      //    PackageInfoHolder.class.getName(), packageInfos, null);

            //Register manager configuration OSGI service
            try {
                StratosConfiguration stratosConfiguration = CommonUtil.loadStratosConfiguration();
                bundleContext.registerService(StratosConfiguration.class.getName(), stratosConfiguration, null);
                if (log.isDebugEnabled()) {
                    log.debug("******* Cloud Common Service bundle is activated ******* ");
                }
            } catch (Exception ex) {
View Full Code Here

TOP

Related Classes of org.apache.stratos.common.util.StratosConfiguration

Copyright © 2018 www.massapicom. 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.