com.sapportals.wcm.service

Class ServiceFactory

java.lang.Object
  extended by com.sapportals.wcm.service.ServiceFactory
All Implemented Interfaces:
IServiceFactory

public class ServiceFactory
extends Object
implements IServiceFactory

Copyright 2004 SAP AG


Method Summary
 Collection getAllServices()
          Returns all services
static ServiceFactory getInstance()
          Returns the ServiceFactory instance
 IService getService(String type)
          Returns a instance for a given service type identifier
 boolean isAvailable(String type)
          Returns true if the service is available.
 void releaseService(IService service)
          Releases the service instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ServiceFactory getInstance()
                                  throws WcmException
Returns the ServiceFactory instance

Returns:
instance
Throws:
WcmException - Exception raised in failure situation

getService

public IService getService(String type)
                    throws WcmException
Description copied from interface: IServiceFactory
Returns a instance for a given service type identifier

Specified by:
getService in interface IServiceFactory
Parameters:
type - The service type
Returns:
A service instance
Throws:
WcmException - Exception raised in failure situation

isAvailable

public boolean isAvailable(String type)
                    throws WcmException
Description copied from interface: IServiceFactory
Returns true if the service is available.

Specified by:
isAvailable in interface IServiceFactory
Parameters:
type - Checks if the service is available.
Returns:
true if the service is available
Throws:
WcmException - Exception raised in failure situation

getAllServices

public Collection getAllServices()
                          throws WcmException
Description copied from interface: IServiceFactory
Returns all services

Specified by:
getAllServices in interface IServiceFactory
Returns:
A collection of IService instances
Throws:
WcmException - Exception raised in failure situation

releaseService

public void releaseService(IService service)
                    throws WcmException
Description copied from interface: IServiceFactory
Releases the service instance.

Specified by:
releaseService in interface IServiceFactory
Parameters:
service - The service instance to release.
Throws:
WcmException - Exception raised in failure situation
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2014 SAP AG Complete Copyright Notice