org.glite.discovery
Class ServiceDiscoveryFactory

java.lang.Object
  extended byorg.glite.discovery.ServiceDiscoveryFactory

public class ServiceDiscoveryFactory
extends java.lang.Object

Factory for implementations of ServiceDiscovery interface.


Constructor Summary
ServiceDiscoveryFactory()
           
 
Method Summary
static ServiceDiscovery create()
          Creates an instance of the ServiceDiscovery interface using a class defined by the sd.class system property.
static ServiceDiscovery create(java.lang.String className)
          Creates an instance of the ServiceDiscovery interface using the specified class name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceDiscoveryFactory

public ServiceDiscoveryFactory()
Method Detail

create

public static ServiceDiscovery create()
                               throws ServiceDiscoveryException
Creates an instance of the ServiceDiscovery interface using a class defined by the sd.class system property.

Returns:
An instance of the ServiceDiscovery interface.
Throws:
ServiceDiscoveryException - If the instance can not be created.

create

public static ServiceDiscovery create(java.lang.String className)
                               throws ServiceDiscoveryException
Creates an instance of the ServiceDiscovery interface using the specified class name.

Parameters:
className - Name of implementation class to instantiate.
Returns:
An instance of the ServiceDiscovery interface.
Throws:
ServiceDiscoveryException - If the instance can not be created.