|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.robokind.api.common.lifecycle.DependencyDescriptor
public final class DependencyDescriptor
Describes a service dependency of a ServiceLifecycleProvider. Used to match find and track the appropriate services needed by a lifecycle provider.
Nested Class Summary | |
---|---|
static class |
DependencyDescriptor.DependencyType
|
Constructor Summary | |
---|---|
DependencyDescriptor(String dependencyName,
Class clazz,
String filter)
Create a new required DependencyDescriptor with the given values. |
|
DependencyDescriptor(String dependencyName,
Class clazz,
String filter,
DependencyDescriptor.DependencyType type)
Create a new DependencyDescriptor with the given values. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getDependencyName()
Returns the dependency name used within a ServiceLifecycleProvider. |
DependencyDescriptor.DependencyType |
getDependencyType()
Returns the dependency type, Required or Optional |
Class |
getServiceClass()
Returns the Class of dependency. |
String |
getServiceFilter()
Returns an OSGi filter string for the dependency, null if it is not set. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DependencyDescriptor(String dependencyName, Class clazz, String filter)
dependencyName
- dependency name within a ServiceLifecycleProviderclazz
- Class of the dependencyfilter
- optional OSGi filter stringpublic DependencyDescriptor(String dependencyName, Class clazz, String filter, DependencyDescriptor.DependencyType type)
dependencyName
- dependency name within a ServiceLifecycleProviderclazz
- Class of the dependencyfilter
- optional OSGi filter stringtype
- is this dependency required or optionalMethod Detail |
---|
public String getDependencyName()
public Class getServiceClass()
public String getServiceFilter()
public DependencyDescriptor.DependencyType getDependencyType()
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |