|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.robokind.api.common.lifecycle.utils.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. |
|
DescriptorListBuilder(List<DependencyDescriptor> descriptors)
Creates a new DescriptorListBuilder with the given descriptors. |
|
| Method Summary | |
|---|---|
DescriptorBuilder |
dependency(String name,
Class clazz)
Adds a new DependencyDescriptor with the given name and class |
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()
public DescriptorListBuilder(List<DependencyDescriptor> descriptors)
descriptors - initial DependencyDescriptor list| Method Detail |
|---|
public DescriptorBuilder dependency(String name,
Class clazz)
name - dependency name used within the ManagedServiceclazz - dependency class
public List<DependencyDescriptor> getDescriptors()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||