@Override
public void finishInitialization() {
super.finishInitialization();
if (isDirectConnectEnabled())
{
registerRequestHandler(new
JarResourceRequestHandler(), "_wr_");
registerRequestHandler(new
JarResourceRequestHandler(), "wr");
}
}
/**
* Determines the WOSession class to instantiate.
*
* @see
com.webobjects.appserver.WOApplication#_sessionClass()
*/
@Override
protected Class<? extends WOSession>
_sessionClass() {
return Session.class;
}
/**
* Install patches including ensuring that Main is correctly
resolved at
* runtime.
*
* @see
er.extensions.appserver.ERXApplication#installPatches()
*/
@Override
public void installPatches() {
super.installPatches();
//
component classes
installPatch(Main.class);
//
action classes
installPatch(DirectAction.class);
}
/**
* Installs patching for a given class.
*
* @param clazz
* the class to register.
*/
private static void
installPatch(final
Class<?> clazz) {
ERXPatcher.setClassForName(clazz, clazz.getSimpleName());
_NSUtilities.registerPackage(clazz.getPackage().getName());
}