Package org.osgi.framework.dto

Examples of org.osgi.framework.dto.ServiceReferenceDTO


        return dtos.toArray( new UnsatisfiedReferenceDTO[dtos.size()] );
    }

  private ServiceReferenceDTO serviceReferenceToDTO( ServiceReference<?> serviceRef)
  {
    ServiceReferenceDTO dto = new ServiceReferenceDTO();
    dto.bundle = serviceRef.getBundle().getBundleId();
    dto.id = (Long) serviceRef.getProperty(Constants.SERVICE_ID);
    dto.properties = deepCopy( serviceRef );
    Bundle[] usingBundles = serviceRef.getUsingBundles();
    if (usingBundles != null)
View Full Code Here


        ServiceComponentRuntimeImpl scr = new ServiceComponentRuntimeImpl(null, null);
        same("foo", scr);
        same(Boolean.TRUE, scr);
        same(1, scr);
        same(1l, scr);
        same(new ServiceReferenceDTO(), scr);
        same( new String[] {"foo", "bar"}, scr);
        same( new Boolean[] {true, false}, scr);
        same( new Long[] {1l, 2l}, scr);
        same( new DTO[] {new ServiceReferenceDTO(), new BundleDTO()}, scr);
        equalsToString(new int[] {1, 2}, scr);
        equalsToString(Arrays.asList(new int[] {1, 2}), scr);
        equalsToString(Arrays.asList(new String[] {"foo", "bar"}), scr);
    }
View Full Code Here

TOP

Related Classes of org.osgi.framework.dto.ServiceReferenceDTO

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.