Package org.springframework.osgi.service.importer.support

Examples of org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean.afterPropertiesSet()


    proxyFB.setBeanClassLoader(proxyType.getClassLoader());
    // wait 5 seconds
    proxyFB.setTimeout(5 * 1000);
    if (StringUtils.hasText(serviceName))
      proxyFB.setServiceBeanName(serviceName);
    proxyFB.afterPropertiesSet();

    return proxyFB.getObject();
  }

  /**
 
View Full Code Here


                OsgiServiceProxyFactoryBean factory = new OsgiServiceProxyFactoryBean();
                factory.setBundleContext(getBundleContext());
                factory.setBeanClassLoader(classLoader);
                factory.setFilter(filter);
                factory.setInterfaces(new Class[] { ClassUtils.resolveClassName(className, classLoader) });
                factory.afterPropertiesSet();
                return factory.getObject();
            } catch (org.springframework.osgi.service.ServiceUnavailableException e) {
                NameNotFoundException ex = new NameNotFoundException(e.getMessage());
                ex.initCause(e);
                throw ex;
View Full Code Here

    proxyFactory.setBundleContext(bundleContext);
    proxyFactory.setCardinality(Cardinality.C_0__1);
    proxyFactory.setContextClassLoader(ImportContextClassLoader.UNMANAGED);
    proxyFactory.setInterfaces(new Class[] { Shape.class });
    proxyFactory.setTimeout(initialWait);
    proxyFactory.afterPropertiesSet();

    Runnable resetProxy = new Runnable() {

      public void run() {
        try {
View Full Code Here

    fb.setCardinality(Cardinality.C_0__1);
    fb.setContextClassLoader(ImportContextClassLoader.UNMANAGED);
    fb.setInterfaces(new Class[] { DocumentEvent.class });
    fb.setBeanClassLoader(cl);
    fb.setApplicationEventPublisher(applicationContext);
    fb.afterPropertiesSet();

    checkPackageVisibility(cl);

    Object proxy = fb.getObject();
    assertNotNull(proxy);
View Full Code Here

    proxyFB.setBeanClassLoader(proxyType.getClassLoader());
    // wait 5 seconds
    proxyFB.setTimeout(5 * 1000);
    if (StringUtils.hasText(serviceName))
      proxyFB.setServiceBeanName(serviceName);
    proxyFB.afterPropertiesSet();

    return proxyFB.getObject();
  }

  /**
 
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.