net.wgen.op.system
Class SubModule
java.lang.Object
net.wgen.op.system.OpModule
net.wgen.op.system.SubModule
- All Implemented Interfaces:
- java.io.Serializable
- public abstract class SubModule
- extends OpModule
An application that is used by other first-class Applications. The one abstract
method here allows the PluginApplication to claim a particular URL, but then analyzing it
route the request to another application. Doing this means that a PluginApplication can
map to an existing Application datasource.
For example, if Small Group Advisor claims the url "wgen/sga" the PluginApplication for Small
Group Advisor can say, "Ok, even tho I'm in my own url space, I want to route this particular
request to D2 so that the database calls I make are made using the D2 SQL Data Source."
- Version:
- $Id: SubModule.html,v 1.2 2007/01/28 04:09:37 paulfeuer Exp $
- Author:
- Paul Feuer, Wireless Generation, Inc.
- See Also:
- Serialized Form
|
Constructor Summary |
SubModule(java.lang.String name)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SubModule
public SubModule(java.lang.String name)
getParentApplicationNameForUrl
public abstract java.lang.String getParentApplicationNameForUrl(java.lang.String url)
- Given the url, what application should i go to.
- Parameters:
url -
- Returns:
- the application name into which this app plugs
resolvePluginParentApplication
public static OpModule resolvePluginParentApplication(SubModule subApp,
java.lang.String url)
- Parameters:
subApp - url -
- Returns:
- the application to which the plugin refers or itself, if it could not find the reference