org.apache.whirr.service
Class ServiceFactory
java.lang.Object
org.apache.whirr.service.ServiceFactory
public class ServiceFactory
- extends Object
This class is used to create Service
instances.
Implementation note. Service
implementations are discovered
using a Service Provider
Interface (SPI), described in ServiceLoader
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceFactory
public ServiceFactory()
create
public Service create(String serviceName)
- Create an instance of a
Service
according to the given
name.
availableServices
public Set<String> availableServices()
- Return a collection of available services.
- Returns:
Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.