org.example.project
Class ProjectModule

java.lang.Object
  extended bynet.wgen.op.system.OpModule
      extended byorg.example.project.ProjectModule
All Implemented Interfaces:
java.io.Serializable

public class ProjectModule
extends OpModule

Version:
$Id: ProjectModule.html,v 1.2 2007/01/28 04:09:38 paulfeuer Exp $
Author:
Paul Feuer, Wireless Generation, Inc.
See Also:
Serialized Form

Field Summary
static java.lang.String DATA_SOURCE
           
static java.lang.Long MODULE_ID
           
static java.lang.String NAME
           
 
Fields inherited from class net.wgen.op.system.OpModule
_initProperties, CVSID_PROPERTY, LOG, VERSION_PROPERTY
 
Constructor Summary
ProjectModule()
           
 
Method Summary
 int getClassMatchLength(java.lang.Class clazz)
          The amount of the class name that can be claimed by this Application.
 java.lang.String getDataSourceName()
          The datasource name in the oracle-xa-ds configuration file.
 java.lang.Long getModuleId()
          The applicationSid of the application.
 int getUrlMatchLength(java.lang.String url)
          The amount of the url that can be claimed by this Application.
 
Methods inherited from class net.wgen.op.system.OpModule
getEjbManagerName, getInitProperties, getLogger, getName, setInitializationProperties, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DATA_SOURCE

public static final java.lang.String DATA_SOURCE
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

MODULE_ID

public static final java.lang.Long MODULE_ID
Constructor Detail

ProjectModule

public ProjectModule()
Method Detail

getUrlMatchLength

public int getUrlMatchLength(java.lang.String url)
The amount of the url that can be claimed by this Application. Returning a -1 means that this application makes no claim on the url. The highest scoring claim wins.

Specified by:
getUrlMatchLength in class OpModule
Parameters:
url -
Returns:
the amount of the url that can be claimed by this url

getClassMatchLength

public int getClassMatchLength(java.lang.Class clazz)
The amount of the class name that can be claimed by this Application. Returning a 0 means that this application makes no claim on the class. The highest scoring claim wins.

Specified by:
getClassMatchLength in class OpModule
Parameters:
clazz -
Returns:
the amount of the url that can be claimed by this url

getModuleId

public java.lang.Long getModuleId()
The applicationSid of the application.

Specified by:
getModuleId in class OpModule
Returns:
the applicationSid of the application

getDataSourceName

public java.lang.String getDataSourceName()
Description copied from class: OpModule
The datasource name in the oracle-xa-ds configuration file.

Overrides:
getDataSourceName in class OpModule
Returns:
the datasource name in the oracle-xa-ds configuration file.