org.w3c.ddr.simple
Class ServiceFactory

java.lang.Object
  extended by org.w3c.ddr.simple.ServiceFactory

public class ServiceFactory
extends Object

This factory creates a DDR Service instance.

NOTE: This class is provided as part of the Java binding of the API, and is not part of the API definition itself.

Author:
Jo Rabin (dotMobi),
Jose Manuel Cantera Fonseca (Telefonica I+D),
Rotan Hanrahan (MobileAware),
Ignacio Marin (Fundacion CTIC)
Copyright © 2008 W3C® (MIT, ERCIM, Keio), All Rights Reserved.
W3C liability, trademark and document use rules apply.

Constructor Summary
ServiceFactory()
           
 
Method Summary
static Service newService(String clazz, String defaultVocabulary, Properties configuration)
          Factory method for creating a new Service instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceFactory

public ServiceFactory()
Method Detail

newService

public static Service newService(String clazz,
                                 String defaultVocabulary,
                                 Properties configuration)
                          throws InitializationException,
                                 NameException
Factory method for creating a new Service instance.

Parameters:
clazz - Class identifier
defaultVocabulary - Passed to the Service.initialize method.
configuration - Passed to the Service.initialize method.
Returns:
Throws:
InitializationException
NameException