Package org.springframework.osgi.context.support

Examples of org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.containsBean()


      synchronized (lock) {
        extenderConfiguration = context;
      }

      warScanner = context.containsBean(WAR_SCANNER_NAME) ? (WarScanner) context.getBean(WAR_SCANNER_NAME,
        WarScanner.class) : createDefaultWarScanner();

      warDeployer = context.containsBean(WAR_DEPLOYER_NAME) ? (WarDeployer) context.getBean(WAR_DEPLOYER_NAME,
        WarDeployer.class) : createDefaultWarDeployer(bundleContext);
View Full Code Here


      }

      warScanner = context.containsBean(WAR_SCANNER_NAME) ? (WarScanner) context.getBean(WAR_SCANNER_NAME,
        WarScanner.class) : createDefaultWarScanner();

      warDeployer = context.containsBean(WAR_DEPLOYER_NAME) ? (WarDeployer) context.getBean(WAR_DEPLOYER_NAME,
        WarDeployer.class) : createDefaultWarDeployer(bundleContext);

      contextPathStrategy = context.containsBean(CONTEXT_PATH_STRATEGY_NAME) ? (ContextPathStrategy) context.getBean(
        CONTEXT_PATH_STRATEGY_NAME, ContextPathStrategy.class)
          : createDefaultContextPathStrategy();
View Full Code Here

        WarScanner.class) : createDefaultWarScanner();

      warDeployer = context.containsBean(WAR_DEPLOYER_NAME) ? (WarDeployer) context.getBean(WAR_DEPLOYER_NAME,
        WarDeployer.class) : createDefaultWarDeployer(bundleContext);

      contextPathStrategy = context.containsBean(CONTEXT_PATH_STRATEGY_NAME) ? (ContextPathStrategy) context.getBean(
        CONTEXT_PATH_STRATEGY_NAME, ContextPathStrategy.class)
          : createDefaultContextPathStrategy();

      // extender properties using the defaults as backup
      if (context.containsBean(PROPERTIES_NAME)) {
View Full Code Here

      contextPathStrategy = context.containsBean(CONTEXT_PATH_STRATEGY_NAME) ? (ContextPathStrategy) context.getBean(
        CONTEXT_PATH_STRATEGY_NAME, ContextPathStrategy.class)
          : createDefaultContextPathStrategy();

      // extender properties using the defaults as backup
      if (context.containsBean(PROPERTIES_NAME)) {
        Properties customProperties = (Properties) context.getBean(PROPERTIES_NAME, Properties.class);
        Enumeration propertyKey = customProperties.propertyNames();
        while (propertyKey.hasMoreElements()) {
          String property = (String) propertyKey.nextElement();
          properties.setProperty(property, customProperties.getProperty(property));
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.