public class DependencyDescription
extends java.lang.Object
| Constructor and Description |
|---|
DependencyDescription(Dependency dep)
Creates a dependency description.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(DependencyModelListener listener)
Add the given listener to the dependency model's list of listeners.
|
java.lang.String |
getComparator() |
java.lang.String |
getDefaultImplementation() |
Dependency |
getDependency()
Gets the described dependency.
|
java.lang.String |
getFilter() |
java.lang.String |
getId() |
java.lang.String |
getInterface() |
int |
getPolicy() |
org.osgi.framework.ServiceReference |
getServiceReference()
Gets the service reference if only one service reference is used.
|
java.util.List<org.osgi.framework.ServiceReference> |
getServiceReferences()
Gets the service reference list.
|
java.lang.String |
getSpecification()
Gets the required service specification name.
|
int |
getState() |
java.util.List<org.osgi.framework.ServiceReference> |
getUsedServices()
Gets the used service set.
|
boolean |
isFrozen() |
boolean |
isMultiple() |
boolean |
isOptional() |
boolean |
isProxy() |
void |
removeListener(DependencyModelListener listener)
Remove the given listener from the dependency model's list of listeners.
|
void |
setAggregate(boolean isAgg)
Sets the dependency cardinality.
|
void |
setComparator(java.util.Comparator cmp)
Sets the dependency comparator.
|
void |
setFilter(org.osgi.framework.Filter filter)
Sets the dependency filter.
|
void |
setOptional(boolean isOpt)
Sets the dependency optionality.
|
boolean |
supportsNullable()
Gets
true if the dependency uses Nullable objects. |
public DependencyDescription(Dependency dep)
dep - the described dependencypublic boolean isMultiple()
public boolean isOptional()
public java.lang.String getFilter()
public java.lang.String getInterface()
public int getState()
public java.lang.String getId()
public boolean isProxy()
public boolean supportsNullable()
true if the dependency uses Nullable objects.public java.lang.String getDefaultImplementation()
public int getPolicy()
public java.lang.String getComparator()
public boolean isFrozen()
public java.util.List<org.osgi.framework.ServiceReference> getServiceReferences()
null if no service reference.public org.osgi.framework.ServiceReference getServiceReference()
null if no service reference.public java.util.List<org.osgi.framework.ServiceReference> getUsedServices()
null if no providers are usedpublic void setComparator(java.util.Comparator cmp)
cmp - the comparatorpublic void setFilter(org.osgi.framework.Filter filter)
filter - the new LDAP filterpublic void setAggregate(boolean isAgg)
isAgg - if true sets the dependency to aggregate,
if false sets the dependency to scalar.public void setOptional(boolean isOpt)
isOpt - if true sets the dependency to optional,
if false sets the dependency to mandatory.public java.lang.String getSpecification()
public Dependency getDependency()
public void addListener(DependencyModelListener listener)
listener - the DependencyModelListener object to be addedjava.lang.NullPointerException - if listener is nullpublic void removeListener(DependencyModelListener listener)
listener - the DependencyModelListener object to be removedjava.lang.NullPointerException - if listener is nulljava.util.NoSuchElementException - if listener wasn't present in the dependency model's list of listenersCopyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.