• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
ERXFrameworkPrincipal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: ERXFrameworkPrincipal
      • From: Mike Schrag <email@hidden>
  • Prev by Date: Re: WODisplayGroup can't find displayObjects?
  • Next by Date: Re: ERXFrameworkPrincipal
  • Previous by thread: Re: WOLips updates
  • Next by thread: Re: ERXFrameworkPrincipal
  • Index(es):
    • Date
    • Thread