ERXFrameworkPrincipal
ERXFrameworkPrincipal
- Subject: ERXFrameworkPrincipal
- From: Farrukh Ijaz <email@hidden>
- Date: Tue, 29 Jun 2010 20:30:44 +0300
Hi,
I'm trying to use the ERXFrameworkPrincipal class. Can someone please explain in layman's term how I should use it? Below is the code.
package com.xyz;
// Hidden Imports
import er.extensions.ERXFrameworkPrincipal;
import er.rest.routes.ERXRouteRequestHandler;
public class MyWSFramework extends ERXFrameworkPrincipal {
public static Class<ERXFrameworkPrincipal>[] REQUIRES = new Class[] {
// Hidden required classes
};
static {
setUpFrameworkPrincipalClass(MyWSFramework.class);
}
@Override
public void finishInitialization() {
// Initialize CMS Web Services
System.err.println("Initializing Web Services...");
WOApplication application = WOApplication.application();
application.setDefaultRequestHandler(application.requestHandlerForKey(application.directActionRequestHandlerKey()));
ERXRouteRequestHandler handler = new SecuredRouteRequestHandler(
ERXRouteRequestHandler.WO);
// Hidden routes...
ERXRouteRequestHandler.register(handler);
}
}
But finishInitialization() doesn't get fired. This lead me to think perhaps all my other frameworks are not being initialized although their finishInitialization() method is left blank.
Please do not refer back to the Example code as I've already gone through it and didn't find significant difference in the framework classes.
Farrukh
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden