org.w3c.ddr.simple
Class ServiceFactory
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceFactory
public ServiceFactory()
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 identifierdefaultVocabulary
- Passed to the Service.initialize method.configuration
- Passed to the Service.initialize method.
- Returns:
-
- Throws:
InitializationException
NameException