public class Singleton<T extends Singleton<T>> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Singleton.SingletonResources
Child mutators for Singleton
|
Constructor and Description |
---|
Singleton() |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
String |
attributeDefault()
The default singleton policy
|
T |
attributeDefault(String value)
The default singleton policy
|
String |
getKey() |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
T |
singletonPolicies(List<SingletonPolicy> value)
Add all SingletonPolicy objects to this subresource
|
T |
singletonPolicy(SingletonPolicy value)
Add the SingletonPolicy object to the list of subresources
|
T |
singletonPolicy(SingletonPolicySupplier supplier)
Install a supplied SingletonPolicy object to the list of subresources
|
T |
singletonPolicy(String childKey)
Create and configure a SingletonPolicy object to the list of subresources
|
T |
singletonPolicy(String childKey,
SingletonPolicyConsumer consumer)
Create and configure a SingletonPolicy object to the list of subresources
|
Singleton.SingletonResources |
subresources() |
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public Singleton.SingletonResources subresources()
public T singletonPolicies(List<SingletonPolicy> value)
value
- List of SingletonPolicy objects.public T singletonPolicy(SingletonPolicy value)
value
- The SingletonPolicy to addpublic T singletonPolicy(String childKey, SingletonPolicyConsumer consumer)
key
- The key for the SingletonPolicy resourceconfig
- The SingletonPolicyConsumer to usepublic T singletonPolicy(String childKey)
key
- The key for the SingletonPolicy resourcepublic T singletonPolicy(SingletonPolicySupplier supplier)
public String attributeDefault()
Copyright © 2019 JBoss by Red Hat. All rights reserved.