org.apache.aries.util.service.registry
Class ServicePair<T>

java.lang.Object
  extended by org.apache.aries.util.service.registry.ServicePair<T>

public class ServicePair<T>
extends Object


Constructor Summary
ServicePair(org.osgi.framework.BundleContext context, org.osgi.framework.ServiceReference serviceRef)
           
ServicePair(org.osgi.framework.BundleContext context, org.osgi.framework.ServiceReference serviceRef, T service)
           
 
Method Summary
 T get()
           
 org.osgi.framework.ServiceReference getReference()
           
 boolean isValid()
           
 void unget()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServicePair

public ServicePair(org.osgi.framework.BundleContext context,
                   org.osgi.framework.ServiceReference serviceRef)

ServicePair

public ServicePair(org.osgi.framework.BundleContext context,
                   org.osgi.framework.ServiceReference serviceRef,
                   T service)
Method Detail

get

public T get()

isValid

public boolean isValid()

unget

public void unget()

getReference

public org.osgi.framework.ServiceReference getReference()


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.