ParticipantCreateArgs¶
-
public abstract class
ParticipantCreateArgs
<ConcreteClass extends ParticipantCreateArgs<?>>¶ A parameter object used to specify the various parameters that are required to construct new
Participant
instances. This class is intended for method chaining. Subclasses exist for each participant type.- Author
swrede, jwienke, jmoringe
- Parameters
<ConcreteClass> – The specific subclass that needs to be returned in setters for the method chaining pattern so that subclass setters are still available after using one of the setters in this class.
Methods¶
getConfig¶
-
public ParticipantConfig
getConfig
()¶ Returns the
ParticipantConfig
to be used for the newParticipant
.- Returns
the config
getParent¶
-
public Participant
getParent
()¶ Returns the parent
Participant
of theParticipant
to create.- Returns
the parent of the
Participant
to create ornull
if no parent.
getScope¶
-
public Scope
getScope
()¶ Returns the
Scope
to be used for the newParticipant
.- Returns
the scope
setConfig¶
-
public ConcreteClass
setConfig
(ParticipantConfig config)¶ Sets the
ParticipantConfig
to be used for theParticipant
.- Parameters
config – new config to use. Can be
null
in case the default configuration shall be used.- Returns
this instance for method chaining.
setParent¶
-
public ConcreteClass
setParent
(Participant parent)¶ Sets the parent
Participant
of theParticipant
to create.- Parameters
parent – the parent to set or
null
for no parent- Returns
this instance for method chaining
setScope¶
-
public ConcreteClass
setScope
(Scope scope)¶ Sets the
Scope
to be used for theParticipant
.- Parameters
scope – new scope to use. Must not be
null
.- Returns
this instance for method chaining.