|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.wgen.op.system.OpModule
Loaded on startup, this class provides some configuration parameters for an module. The instantiation of your subclass is achieved by setting a OpModule.class property in a .module.properties file in the WEB-INF folder. This file will be read by the OpModuleInitializerServlet.
OpModuleInitializerServlet.MODULE_CLASS_PROPERTY,
Serialized Form| Field Summary | |
protected java.util.Properties |
_initProperties
Initialization properties read in from the .wgapp file. |
private java.lang.String |
_name
The name of the OpModule. |
static java.lang.String |
CVSID_PROPERTY
|
protected org.apache.log4j.Logger |
LOG
Logger for the subclass. |
static java.lang.String |
VERSION_PROPERTY
|
| Constructor Summary | |
protected |
OpModule(java.lang.String name)
Default constructor that requires a name. |
| Method Summary | |
abstract 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.String |
getEjbManagerName()
The EjbManager String, which for newer Ops should be OpManager, but by default will construct one from the _name. |
java.util.Properties |
getInitProperties()
The initialization properties from the wgapp file. |
org.apache.log4j.Logger |
getLogger()
The logger for this instance of WGAPplication class. |
abstract java.lang.Long |
getModuleId()
The applicationSid of the application. |
java.lang.String |
getName()
The application name. |
abstract int |
getUrlMatchLength(java.lang.String url)
The amount of the url that can be claimed by this Application. |
protected void |
setInitializationProperties(java.util.Properties props)
Called by the initializer servlet with the properties found in the .wgapp file. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String VERSION_PROPERTY
public static final java.lang.String CVSID_PROPERTY
private final java.lang.String _name
protected java.util.Properties _initProperties
protected transient org.apache.log4j.Logger LOG
| Constructor Detail |
protected OpModule(java.lang.String name)
name - the name of the app| Method Detail |
public java.lang.String getName()
protected void setInitializationProperties(java.util.Properties props)
props - OpModuleInitializerServlet.readProperties(java.io.File)public abstract int getUrlMatchLength(java.lang.String url)
url -
public abstract int getClassMatchLength(java.lang.Class clazz)
clazz -
public abstract java.lang.Long getModuleId()
public java.lang.String getEjbManagerName()
public java.lang.String getDataSourceName()
public org.apache.log4j.Logger getLogger()
public java.util.Properties getInitProperties()
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||