Examples of ProxyPlusCallback


Examples of org.springframework.osgi.service.importer.support.internal.aop.ProxyPlusCallback

      Advice createServiceProviderTCCLAdvice(ServiceReference reference) {
        return tcclAdvice;
      }
    };

    ProxyPlusCallback proxyPlusCallback = creator.createServiceProxy(lookupAdvice.getServiceReference());

    synchronized (monitor) {
      proxy = proxyPlusCallback.proxy;
      destructionCallback = new DisposableBeanRunnableAdapter(proxyPlusCallback.destructionCallback);
    }
View Full Code Here

Examples of org.springframework.osgi.service.importer.support.internal.aop.ProxyPlusCallback

      for (Iterator iterator = serviceProxies.iterator(); iterator.hasNext();) {
        ImportedOsgiServiceProxy serviceProxy = (ImportedOsgiServiceProxy) iterator.next();
        ServiceReference ref = serviceProxy.getServiceReference();

        // get first the destruction callback
        ProxyPlusCallback ppc = (ProxyPlusCallback) servicesIdMap.get((Long) ref.getProperty(Constants.SERVICE_ID));
        listener.serviceChanged(new ServiceEvent(ServiceEvent.UNREGISTERING, ref));

        try {
          ppc.destructionCallback.destroy();
        }
View Full Code Here

Examples of org.springframework.osgi.service.importer.support.internal.aop.ProxyPlusCallback

        Thread.currentThread().setContextClassLoader(classLoader);
        ServiceReference ref = event.getServiceReference();
        Long serviceId = (Long) ref.getProperty(Constants.SERVICE_ID);
        boolean collectionModified = false;

        ProxyPlusCallback ppc = null;
        Object proxy = null;

        // flag used for sending state events
        boolean shouldInformStateListeners = false;
View Full Code Here

Examples of org.springframework.osgi.service.importer.support.internal.aop.ProxyPlusCallback

      Advice createServiceProviderTCCLAdvice(ServiceReference reference) {
        return tcclAdvice;
      }
    };

    ProxyPlusCallback proxyPlusCallback = creator.createServiceProxy(lookupAdvice.getServiceReference());

    synchronized (monitor) {
      proxy = proxyPlusCallback.proxy;
      destructionCallback = new DisposableBeanRunnableAdapter(proxyPlusCallback.destructionCallback);
    }
View Full Code Here

Examples of org.springframework.osgi.service.importer.support.internal.aop.ProxyPlusCallback

    Advice infrastructureMixin = new InfrastructureOsgiProxyAdvice(dispatcherInterceptor);

    advices.add(infrastructureMixin);
    advices.add(dispatcherInterceptor);

    return new ProxyPlusCallback(ProxyUtils.createProxy(getInterfaces(reference), null, classLoader, bundleContext,
      advices), dispatcherInterceptor);
  }
View Full Code Here

Examples of org.springframework.osgi.service.importer.support.internal.aop.ProxyPlusCallback

      for (Iterator iterator = serviceProxies.iterator(); iterator.hasNext();) {
        ImportedOsgiServiceProxy serviceProxy = (ImportedOsgiServiceProxy) iterator.next();
        ServiceReference ref = serviceProxy.getServiceReference();

        // get first the destruction callback
        ProxyPlusCallback ppc = (ProxyPlusCallback) servicesIdMap.get((Long) ref.getProperty(Constants.SERVICE_ID));
        listener.serviceChanged(new ServiceEvent(ServiceEvent.UNREGISTERING, ref));

        try {
          ppc.destructionCallback.destroy();
        }
View Full Code Here

Examples of org.springframework.osgi.service.importer.support.internal.aop.ProxyPlusCallback

        Thread.currentThread().setContextClassLoader(classLoader);
        ServiceReference ref = event.getServiceReference();
        Long serviceId = (Long) ref.getProperty(Constants.SERVICE_ID);
        boolean collectionModified = false;

        ProxyPlusCallback ppc = null;
        Object proxy = null;

        // flag used for sending state events
        boolean shouldInformStateListeners = false;
View Full Code Here

Examples of org.springframework.osgi.service.importer.support.internal.aop.ProxyPlusCallback

  public SimpleServiceJDKProxyCreator(BundleContext context, Class[] classes) {
    this(context, classes, SimpleServiceJDKProxyCreator.class.getClassLoader());
  }

  public ProxyPlusCallback createServiceProxy(final ServiceReference reference) {
    return new ProxyPlusCallback(Proxy.newProxyInstance(loader, classes, new JDKHandler(reference)), null);
  }
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.