public class Service<T extends Service<T>> extends Object
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
String |
getKey() |
Boolean |
isPrimary()
Indicates whether the local member is the primary provider of this
singleton service
|
T |
isPrimary(Boolean value)
Indicates whether the local member is the primary provider of this
singleton service
|
String |
primaryProvider()
The primary provider of this singleton service
|
T |
primaryProvider(String value)
The primary provider of this singleton service
|
T |
provider(String value)
The members on which the singleton service is installed
|
List<String> |
providers()
The members on which the singleton service is installed
|
T |
providers(List<String> value)
The members on which the singleton service is installed
|
T |
providers(String... args)
The members on which the singleton service is installed
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
public Service(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public Boolean isPrimary()
public T isPrimary(Boolean value)
public String primaryProvider()
public T primaryProvider(String value)
public T providers(List<String> value)
Copyright © 2020 JBoss by Red Hat. All rights reserved.