Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.coherence.config
Class ServiceSchemeRegistry

java.lang.Object
  extended by com.tangosol.coherence.config.ServiceSchemeRegistry

All Implemented Interfaces:
java.lang.Iterable

public class ServiceSchemeRegistry
extends java.lang.Object
implements java.lang.Iterable

A ServiceSchemeRegistry provides a mechanism manage a collection of ServiceSchemes together with the ability to search the registry for said ServiceSchemes, either by name or service name.

ServiceSchemeRegistrys are Iterable, the order of iteration being the order in which the ServiceSchemes where added to the said ServiceSchemeRegistry.

Since:
Coherence 12.1.2
Author:
bo 2012.05.02

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 Schemes registered with the ServiceSchemeRegistry.

 

Constructor Detail

ServiceSchemeRegistry

public ServiceSchemeRegistry()
Constructs a ServiceSchemeRegistry.

Method Detail

iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface java.lang.Iterable

register

public void register(ServiceScheme scheme)
Attempts to register the specified ServiceScheme.
Parameters:
scheme - the ServiceScheme to register
Throws:
java.lang.IllegalArgumentException - if a ServiceScheme with the same scheme and/or service name has already been registered

findSchemeBySchemeName

public ServiceScheme findSchemeBySchemeName(java.lang.String sSchemeName)
Attempts to locate a ServiceScheme registered with the specified Scheme.getSchemeName().
Parameters:
sSchemeName - the scheme of the ServiceScheme to find
Returns:
the registered ServiceScheme or null if not registered

findSchemeByServiceName

public ServiceScheme findSchemeByServiceName(java.lang.String sServiceName)
Attempts to locate a ServiceScheme registered with the specified ServiceScheme.getServiceName()
Parameters:
sServiceName - the service name of ServiceScheme to find
Returns:
the registered ServiceScheme or null if not registered

size

public int size()
Determines the number of Schemes registered with the ServiceSchemeRegistry.
Returns:
the number of Schemes

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.