Examples of BundleContextPropertyResolver


Examples of org.ops4j.pax.swissbox.property.BundleContextPropertyResolver

   * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
   */
  public void start(final BundleContext bundleContext) {
    NullArgumentException.validateNotNull(bundleContext, "Bundle context");
    m_bundleContext = bundleContext;
    m_propertyResolver = new BundleContextPropertyResolver(bundleContext);
    m_configuration = m_connectionFactory
        .createConfiguration(m_propertyResolver);
    registerHandler();
  }
View Full Code Here

Examples of org.ops4j.pax.swissbox.property.BundleContextPropertyResolver

    public static ConfigurationImpl newInstance(ConfigurationAdmin admin, BundleContext context) {
        PropertyResolver resolver =
                new DictionaryPropertyResolver(getProperties(admin, ServiceConstants.PID),
                        new DictionaryPropertyResolver(getProperties(admin, "org.ops4j.pax.url.mvn"),
                                new BundleContextPropertyResolver(context)));

        return new ConfigurationImpl(resolver);
    }
View Full Code Here

Examples of org.ops4j.pax.swissbox.property.BundleContextPropertyResolver

        // we are not going to use the property resolver that we're being provided with, but we will build our own instead
        BundleContext context = Activator.getInstanceBundleContext();
        PropertyResolver resolver =
                new DictionaryPropertyResolver(getProperties(context, ServiceConstants.PID),
                        new DictionaryPropertyResolver(getProperties(context, "org.ops4j.pax.url.mvn"),
                                new BundleContextPropertyResolver(context)));

        return new ConfigurationImpl(resolver);
    }
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.