|
||||||||||
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
org.robokind.api.common.lifecycle.utils.DescriptorBuilder
public class DescriptorBuilder
Builds a DependencyDescriptor.
Constructor Summary | |
---|---|
DescriptorBuilder(DescriptorListBuilder listBuilder,
String name,
Class clazz,
DependencyDescriptor.DependencyType type)
|
|
DescriptorBuilder(String name,
Class clazz)
Begins building a DependencyDescriptor with the give name and class. |
Method Summary | |
---|---|
DescriptorBuilder |
dependency(String name,
Class clazz)
Adds a new DependencyDescriptor with the given name and class |
DependencyDescriptor |
getDescriptor()
|
List<DependencyDescriptor> |
getDescriptors()
Returns the list of DependencyDescriptors added to this list builder. |
DescriptorBuilder |
optional()
Sets the dependency type to OPTIONAL. |
DescriptorBuilder |
required()
Sets the dependency type to REQUIRED. |
DescriptorBuilder |
with(Properties props)
|
DescriptorBuilder |
with(String filter)
|
DescriptorBuilder |
with(String key,
String value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DescriptorBuilder(String name, Class clazz)
name
- clazz
- public DescriptorBuilder(DescriptorListBuilder listBuilder, String name, Class clazz, DependencyDescriptor.DependencyType type)
Method Detail |
---|
public DependencyDescriptor getDescriptor()
public DescriptorBuilder with(String key, String value)
public DescriptorBuilder with(String filter)
public DescriptorBuilder with(Properties props)
public DescriptorBuilder optional()
public DescriptorBuilder required()
public DescriptorBuilder dependency(String name, Class clazz)
DescriptorListBuilder
dependency
in class DescriptorListBuilder
name
- dependency name used within the ManagedServiceclazz
- dependency class
public List<DependencyDescriptor> getDescriptors()
DescriptorListBuilder
getDescriptors
in class DescriptorListBuilder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |