org.apache.jetspeed.service
Class ServiceFactory
java.lang.Object
|
+--org.apache.jetspeed.service.ServiceFactory
- public class ServiceFactory
- extends java.lang.Object
The ServiceFactory class is a singleton that allows to instantiate
Service objects. Each service is identified by name.
- See Also:
Service
Method Summary |
static Service |
getService(java.lang.String aName,
org.apache.jetspeed.service.PortletRequest aRequest,
org.apache.jetspeed.service.PortletResponse aResponse)
Returns a service object with the given name. |
static Service |
getService(java.lang.String aName,
org.apache.jetspeed.service.PortletRequest aRequest,
org.apache.jetspeed.service.PortletResponse aResponse,
java.lang.Object[] aParams)
Returns a service object with the given name. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
getService
public static final Service getService(java.lang.String aName,
org.apache.jetspeed.service.PortletRequest aRequest,
org.apache.jetspeed.service.PortletResponse aResponse)
- Returns a service object with the given name.
- Parameters:
aName
- the name of the serviceaRequest
- the portlet requestaResponse
- the portlet response- Returns:
- a service object
getService
public static final Service getService(java.lang.String aName,
org.apache.jetspeed.service.PortletRequest aRequest,
org.apache.jetspeed.service.PortletResponse aResponse,
java.lang.Object[] aParams)
- Returns a service object with the given name. The array of parameters
has to contain the parameters that are required by the requested service.
- Parameters:
aName
- the name of the serviceaRequest
- the portlet requestaResponse
- the portlet responseaParams
- an array of parameters- Returns:
- a service object