net.wgen.op.system
Class UnknownModule

java.lang.Object
  extended bynet.wgen.op.system.OpModule
      extended bynet.wgen.op.system.UnknownModule
All Implemented Interfaces:
java.io.Serializable

public class UnknownModule
extends OpModule

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

Field Summary
private static UnknownModule _self
          The singleton instance of the class.
static java.lang.String NAME
           
 
Fields inherited from class net.wgen.op.system.OpModule
_initProperties, CVSID_PROPERTY, LOG, VERSION_PROPERTY
 
Constructor Summary
private UnknownModule()
          Private, no-arg constructor to limit creation to singleton accessor.
 
Method Summary
 int getClassMatchLength(java.lang.Class clazz)
          The amount of the class name that can be claimed by this Application.
static UnknownModule getInstance()
          The singleton accessor.
 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.
 boolean isMyClass(java.lang.Class clazz)
           
 boolean isMyUrl(java.lang.String url)
           
 
Methods inherited from class net.wgen.op.system.OpModule
getDataSourceName, 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

NAME

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

_self

private static UnknownModule _self
The singleton instance of the class.

Constructor Detail

UnknownModule

private UnknownModule()
Private, no-arg constructor to limit creation to singleton accessor.

Method Detail

getInstance

public static UnknownModule getInstance()
The singleton accessor.

Returns:
the singleton instance of this class

getUrlMatchLength

public int getUrlMatchLength(java.lang.String url)
The amount of the url that can be claimed by this Application. Returning a 0 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

isMyUrl

public boolean isMyUrl(java.lang.String url)

isMyClass

public boolean isMyClass(java.lang.Class clazz)

getModuleId

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

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