public class DependencyDescription extends Object
Constructor and Description |
---|
DependencyDescription(Dependency dep)
Creates a dependency description.
|
Modifier and Type | Method and Description |
---|---|
String |
getComparator() |
String |
getDefaultImplementation() |
String |
getFilter() |
String |
getId() |
String |
getInterface() |
int |
getPolicy() |
org.osgi.framework.ServiceReference |
getServiceReference()
Gets the service reference if only one service reference is used.
|
List |
getServiceReferences()
Gets the service reference list.
|
String |
getSpecification()
Gets the required service specification name.
|
int |
getState() |
List |
getUsedServices()
Gets the used service set.
|
boolean |
isFrozen() |
boolean |
isMultiple() |
boolean |
isOptional() |
boolean |
isProxy() |
void |
setAggregate(boolean isAgg)
Sets the dependency cardinality.
|
void |
setComparator(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 String getFilter()
public String getInterface()
public int getState()
public String getId()
public boolean isProxy()
public boolean supportsNullable()
true
if the dependency uses Nullable objects.public String getDefaultImplementation()
public int getPolicy()
public String getComparator()
public boolean isFrozen()
public List getServiceReferences()
null
if no service reference.public org.osgi.framework.ServiceReference getServiceReference()
null
if no service reference.public List getUsedServices()
null
if no providers are usedpublic void setComparator(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 String getSpecification()
Copyright © 2012-2013 Adele Team | LIG. All Rights Reserved.