|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.robokind.api.common.osgi.lifecycle.DescriptorListBuilder
public class DescriptorListBuilder
Convenience class for building a List of DependencyDescriptors. Methods for adding descriptors return the DescriptorListBuilder to allow for method chaining. e.x.: List>DependencyDescriptor< descs = new DescriptorListBuilder().add(...).addId(...).getDescriptors();
| Constructor Summary | |
|---|---|
DescriptorListBuilder()
Creates an empty DescriptorListBuilder. |
|
| Method Summary | |
|---|---|
DescriptorListBuilder |
add(String localDependencyId,
Class clazz,
String filter)
Creates and adds a DependencyDescriptor with the given values. |
DescriptorListBuilder |
addId(String localDependencyId,
Class clazz,
String idPropertyName,
String serviceId)
Creates and adds a DependencyDescriptor with the given values. |
DescriptorListBuilder |
addId(String localDependencyId,
Class clazz,
String idPropertyName,
String serviceId,
String filter)
Creates and adds a DependencyDescriptor with the given values. |
List<DependencyDescriptor> |
getDescriptors()
Returns the list of DependencyDescriptors added to this list builder. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DescriptorListBuilder()
| Method Detail |
|---|
public DescriptorListBuilder addId(String localDependencyId,
Class clazz,
String idPropertyName,
String serviceId)
localDependencyId - dependency id used with a
ServiceLifecycleProviderclazz - dependency classidPropertyName - property name for the dependency's service idserviceId - service id of the dependency
public DescriptorListBuilder addId(String localDependencyId,
Class clazz,
String idPropertyName,
String serviceId,
String filter)
localDependencyId - dependency id used with a
ServiceLifecycleProviderclazz - dependency classidPropertyName - property name for the dependency's service idserviceId - service id of the dependencyfilter - optional OSGi filter String
public DescriptorListBuilder add(String localDependencyId,
Class clazz,
String filter)
localDependencyId - dependency id used with a
ServiceLifecycleProviderclazz - dependency classfilter - optional OSGi filter String
public List<DependencyDescriptor> getDescriptors()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||