|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.coherence.config.ServiceSchemeRegistry
public class ServiceSchemeRegistry
A ServiceSchemeRegistry
provides a mechanism manage a collection of ServiceScheme
s together with the ability to search the registry for said ServiceScheme
s, either by name or service name.
ServiceSchemeRegistry
s are Iterable
, the order of iteration being the order in which the ServiceScheme
s where added to the said ServiceSchemeRegistry
.
Constructor Summary | |
---|---|
ServiceSchemeRegistry() Constructs a ServiceSchemeRegistry . |
Method Summary | |
---|---|
ServiceScheme |
findSchemeBySchemeName(java.lang.String sSchemeName) Attempts to locate a ServiceScheme registered with the specified Scheme.getSchemeName() . |
ServiceScheme |
findSchemeByServiceName(java.lang.String sServiceName) Attempts to locate a ServiceScheme registered with the specified ServiceScheme.getServiceName() |
java.util.Iterator |
iterator() |
void |
register(ServiceScheme scheme) Attempts to register the specified ServiceScheme . |
int |
size() Determines the number of Scheme s registered with the ServiceSchemeRegistry . |
Constructor Detail |
---|
public ServiceSchemeRegistry()
ServiceSchemeRegistry
.Method Detail |
---|
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
public void register(ServiceScheme scheme)
ServiceScheme
.scheme
- the ServiceScheme
to registerjava.lang.IllegalArgumentException
- if a ServiceScheme
with the same scheme and/or service name has already been registeredpublic ServiceScheme findSchemeBySchemeName(java.lang.String sSchemeName)
ServiceScheme
registered with the specified Scheme.getSchemeName()
.sSchemeName
- the scheme of the ServiceScheme
to findServiceScheme
or null
if not registeredpublic ServiceScheme findSchemeByServiceName(java.lang.String sServiceName)
ServiceScheme
registered with the specified ServiceScheme.getServiceName()
sServiceName
- the service name of ServiceScheme
to findServiceScheme
or null
if not registeredpublic int size()
Scheme
s registered with the ServiceSchemeRegistry
.Scheme
s
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |