public abstract class AbstractInfo<T> extends Object implements Comparable<AbstractInfo<T>>
| Constructor and Description |
|---|
AbstractInfo(int ranking,
long serviceId) |
AbstractInfo(org.osgi.framework.ServiceReference<T> ref) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(AbstractInfo<T> other)
Compare two info objects based on their ranking (aka reverse ServiceReference ordering)
|
boolean |
equals(Object obj) |
protected boolean |
getBooleanProperty(org.osgi.framework.ServiceReference<T> ref,
String key) |
protected Map<String,String> |
getInitParams(org.osgi.framework.ServiceReference<T> ref,
String prefix)
Get the init parameters.
|
int |
getRanking() |
long |
getServiceId() |
org.osgi.framework.ServiceReference<T> |
getServiceReference() |
protected String[] |
getStringArrayProperty(org.osgi.framework.ServiceReference<T> ref,
String key) |
protected String |
getStringProperty(org.osgi.framework.ServiceReference<T> ref,
String key) |
String |
getTarget() |
int |
hashCode() |
protected boolean |
isEmpty(String value) |
protected boolean |
isEmpty(String[] value) |
boolean |
isValid() |
public AbstractInfo(org.osgi.framework.ServiceReference<T> ref)
public AbstractInfo(int ranking,
long serviceId)
public boolean isValid()
public int compareTo(AbstractInfo<T> other)
compareTo in interface Comparable<AbstractInfo<T>>protected boolean isEmpty(String value)
protected boolean isEmpty(String[] value)
protected String getStringProperty(org.osgi.framework.ServiceReference<T> ref, String key)
protected String[] getStringArrayProperty(org.osgi.framework.ServiceReference<T> ref, String key)
protected boolean getBooleanProperty(org.osgi.framework.ServiceReference<T> ref, String key)
protected Map<String,String> getInitParams(org.osgi.framework.ServiceReference<T> ref, String prefix)
public int getRanking()
public long getServiceId()
public String getTarget()
public org.osgi.framework.ServiceReference<T> getServiceReference()
Copyright © 2006–2020 The Apache Software Foundation. All rights reserved.