public class ComponentPlugIn
extends java.lang.Object
implements org.apache.struts.action.PlugIn
The following example demonstrates a possible component client facade configuration:
<plug-in className="com.ibm.commerce.struts.ComponentPlugIn"> <set-property property="componentId" value="order"/> <set-property property="clientFacadeClassName" value="com.ibm.commerce.order.facade.client.OrderFacadeClient"/> </plug-in>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
ComponentPlugIn()
Construct new instance of component plug-in.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy plug-in instance.
|
java.lang.String |
getClientFacadeClassName()
Get the component client facade class name.
|
java.lang.String |
getComponentId()
Get the component ID.
|
void |
init(org.apache.struts.action.ActionServlet actionServlet,
org.apache.struts.config.ModuleConfig moduleConfig)
Initialize component plug-in.
|
static java.util.Map |
invokeComponentService(com.ibm.commerce.webcontroller.RequestHandle handle,
java.util.Map inMap,
java.lang.String componentService)
Inovoke the specified component service.
|
java.util.Map |
invokeService(com.ibm.commerce.webcontroller.RequestHandle handle,
java.util.Map inMap,
java.lang.String methodName)
Invoke the component client facade method with the specified method name.
|
void |
setClientFacadeClassName(java.lang.String clientFacadeClassName)
Set the client facade class name.
|
void |
setComponentId(java.lang.String componentId)
Set the component ID.
|
public static final java.lang.String COPYRIGHT
public ComponentPlugIn()
public void destroy()
destroy
in interface org.apache.struts.action.PlugIn
PlugIn.destroy()
public void init(org.apache.struts.action.ActionServlet actionServlet, org.apache.struts.config.ModuleConfig moduleConfig) throws javax.servlet.ServletException
init
in interface org.apache.struts.action.PlugIn
javax.servlet.ServletException
PlugIn.init(org.apache.struts.action.ActionServlet,
org.apache.struts.config.ModuleConfig)
public void setComponentId(java.lang.String componentId)
componentId
- component IDpublic java.lang.String getComponentId()
public void setClientFacadeClassName(java.lang.String clientFacadeClassName)
clientFacadeClassName
- client facade class namepublic java.lang.String getClientFacadeClassName()
public java.util.Map invokeService(com.ibm.commerce.webcontroller.RequestHandle handle, java.util.Map inMap, java.lang.String methodName) throws com.ibm.commerce.webcontroller.exception.RequestException
handle
- request handleinMap
- input parametersmethodName
- client facade method namecom.ibm.commerce.webcontroller.exception.RequestException
public static java.util.Map invokeComponentService(com.ibm.commerce.webcontroller.RequestHandle handle, java.util.Map inMap, java.lang.String componentService) throws com.ibm.commerce.webcontroller.exception.RequestException
handle
- request handleinMap
- input parameterscomponentService
- component servicecom.ibm.commerce.webcontroller.exception.RequestException