Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.RuntimeCollective.webapps.action
Class BeanActionMapping  view BeanActionMapping download BeanActionMapping.java

java.lang.Object
  extended byorg.apache.struts.config.ActionConfig
      extended byorg.apache.struts.action.ActionMapping
          extended bycom.RuntimeCollective.webapps.action.BeanActionMapping
All Implemented Interfaces:
java.io.Serializable

public class BeanActionMapping
extends org.apache.struts.action.ActionMapping

A simple extension to ActionMapping that makes it possible to associate a bean with an Action. This is especially useful when using Actions such as BeanLoaderAction which can act on many different beans depending on context.

In order to use this ActionMapping to configure actions, it is necessary to set the mapping parameter of the ActionServlet defined in WEB-INF/web.xml. (See the ActionServlet API for more details.)

Version:
$Id: BeanActionMapping.java,v 1.5 2003/09/30 15:13:08 joe Exp $

Field Summary
protected  java.lang.String beanAlias
          The alias of the bean associated with this action, eg the name under which it is set in the session.
protected  java.lang.String beanName
          The name of the bean associated with this action.
protected  java.lang.String beanScope
          The scope of the bean associated with this action, eg the name under which it is set in the session.
protected  java.lang.String beanType
          The fully qualified Java class name of the bean associated with this action.
 
Fields inherited from class org.apache.struts.action.ActionMapping
 
Fields inherited from class org.apache.struts.config.ActionConfig
attribute, cancellable, configured, exceptions, forward, forwards, include, input, moduleConfig, multipartClass, name, parameter, path, prefix, roleNames, roles, scope, suffix, type, unknown, validate
 
Constructor Summary
BeanActionMapping()
           
 
Method Summary
 java.lang.String getBeanAlias()
          Get the alias of the bean associated with this action.
 java.lang.String getBeanName()
          Get the name of the bean associated with this action.
 java.lang.String getBeanScope()
          Get the scope of the bean associated with this action.
 java.lang.String getBeanType()
          Get the fully qualified Java class name of the bean associated with this action.
 void setBeanAlias(java.lang.String beanAlias)
          Set the alias of the bean associated with this action.
 void setBeanName(java.lang.String beanName)
          Set the name of the bean associated with this action.
 void setBeanScope(java.lang.String beanScope)
          Set the scope of the bean associated with this action.
 void setBeanType(java.lang.String beanType)
          Set the fully qualified Java class name of the bean associated with this action.
 
Methods inherited from class org.apache.struts.action.ActionMapping
findForward, findForwards, getInputForward
 
Methods inherited from class org.apache.struts.config.ActionConfig
addExceptionConfig, addForwardConfig, findException, findExceptionConfig, findExceptionConfigs, findForwardConfig, findForwardConfigs, freeze, getAttribute, getCancellable, getForward, getInclude, getInput, getModuleConfig, getMultipartClass, getName, getParameter, getPath, getPrefix, getRoleNames, getRoles, getScope, getSuffix, getType, getUnknown, getValidate, removeExceptionConfig, removeForwardConfig, setAttribute, setCancellable, setForward, setInclude, setInput, setModuleConfig, setMultipartClass, setName, setParameter, setPath, setPrefix, setRoles, setScope, setSuffix, setType, setUnknown, setValidate, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

beanName

protected java.lang.String beanName
The name of the bean associated with this action.


beanAlias

protected java.lang.String beanAlias
The alias of the bean associated with this action, eg the name under which it is set in the session.


beanScope

protected java.lang.String beanScope
The scope of the bean associated with this action, eg the name under which it is set in the session.


beanType

protected java.lang.String beanType
The fully qualified Java class name of the bean associated with this action.

Constructor Detail

BeanActionMapping

public BeanActionMapping()
Method Detail

setBeanName

public void setBeanName(java.lang.String beanName)
Set the name of the bean associated with this action.


getBeanName

public java.lang.String getBeanName()
Get the name of the bean associated with this action.


setBeanAlias

public void setBeanAlias(java.lang.String beanAlias)
Set the alias of the bean associated with this action.


getBeanAlias

public java.lang.String getBeanAlias()
Get the alias of the bean associated with this action.


setBeanScope

public void setBeanScope(java.lang.String beanScope)
Set the scope of the bean associated with this action.


getBeanScope

public java.lang.String getBeanScope()
Get the scope of the bean associated with this action.


setBeanType

public void setBeanType(java.lang.String beanType)
Set the fully qualified Java class name of the bean associated with this action.


getBeanType

public java.lang.String getBeanType()
Get the fully qualified Java class name of the bean associated with this action.