public class Fork<T extends Fork<T>> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Fork.ForkResources
Child mutators for Fork
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
String |
getKey() |
T |
protocol(Protocol value)
Add the Protocol object to the list of subresources
|
T |
protocol(ProtocolSupplier supplier)
Install a supplied Protocol object to the list of subresources
|
T |
protocol(String childKey)
Create and configure a Protocol object to the list of subresources
|
T |
protocol(String childKey,
ProtocolConsumer consumer)
Create and configure a Protocol object to the list of subresources
|
T |
protocols(List<Protocol> value)
Add all Protocol objects to this subresource
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
Fork.ForkResources |
subresources() |
public Fork(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public Fork.ForkResources subresources()
public T protocols(List<Protocol> value)
value
- List of Protocol objects.public T protocol(Protocol value)
value
- The Protocol to addpublic T protocol(String childKey, ProtocolConsumer consumer)
key
- The key for the Protocol resourceconfig
- The ProtocolConsumer to usepublic T protocol(String childKey)
key
- The key for the Protocol resourcepublic T protocol(ProtocolSupplier supplier)
Copyright © 2019 JBoss by Red Hat. All rights reserved.