jgroup.relacs.config
Class ServiceConfig

java.lang.Object
  extended by jgroup.relacs.config.ServiceConfig
All Implemented Interfaces:
ConfigurationObject

public final class ServiceConfig
extends java.lang.Object
implements ConfigurationObject

Object for holding service information.

Since:
Jgroup 1.2
Author:
Hein Meling

Constructor Summary
ServiceConfig()
          Constructs an empty service object.
ServiceConfig(java.lang.String iface)
          Constructs a service config object without listener interface.
ServiceConfig(java.lang.String iface, java.lang.String listener)
          Constructs a service info object.
 
Method Summary
static boolean contains(java.lang.String serviceName)
           
 java.lang.Class getInterface()
           
 java.lang.Class getListener()
           
static java.lang.Class getListenerIface(java.lang.String serviceName)
           
static ServiceConfig getService(java.lang.String serviceName)
           
static java.lang.Class getServiceIface(java.lang.String serviceName)
           
 boolean isMarker()
          Returns true if the listener interface is a marker (empty) interface; otherwise false is returned.
 void parse(org.w3c.dom.Element elm)
          Parses the specified element.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceConfig

public ServiceConfig()
Constructs an empty service object.


ServiceConfig

public ServiceConfig(java.lang.String iface)
              throws ConfigurationException
Constructs a service config object without listener interface.

Throws:
ConfigurationException

ServiceConfig

public ServiceConfig(java.lang.String iface,
                     java.lang.String listener)
              throws ConfigurationException
Constructs a service info object.

Throws:
ConfigurationException
Method Detail

parse

public void parse(org.w3c.dom.Element elm)
           throws ConfigurationException
Parses the specified element.

Specified by:
parse in interface ConfigurationObject
Throws:
ConfigurationException

getService

public static ServiceConfig getService(java.lang.String serviceName)
                                throws ConfigurationException
Throws:
ConfigurationException

getServiceIface

public static java.lang.Class getServiceIface(java.lang.String serviceName)
                                       throws ConfigurationException
Throws:
ConfigurationException

getListenerIface

public static java.lang.Class getListenerIface(java.lang.String serviceName)
                                        throws ConfigurationException
Throws:
ConfigurationException

contains

public static boolean contains(java.lang.String serviceName)

getInterface

public java.lang.Class getInterface()
                             throws ConfigurationException
Throws:
ConfigurationException

getListener

public java.lang.Class getListener()
                            throws ConfigurationException
Throws:
ConfigurationException

isMarker

public boolean isMarker()
                 throws ConfigurationException
Returns true if the listener interface is a marker (empty) interface; otherwise false is returned.

Throws:
ConfigurationException - Thrown if the expected listener interface does not exist.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 1998-2006 The Jgroup/ARM development team. All Rights Reserved.