• 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
Re: ERXFrameworkPrincipal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ERXFrameworkPrincipal


  • Subject: Re: ERXFrameworkPrincipal
  • From: Mike Schrag <email@hidden>
  • Date: Tue, 29 Jun 2010 13:33:50 -0400

make sure you set the framework principal class for your framework to point to this class name or it won't be loaded.

On Jun 29, 2010, at 1:30 PM, Farrukh Ijaz wrote:

> 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

 _______________________________________________
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: Farrukh Ijaz <email@hidden>
References: 
 >ERXFrameworkPrincipal (From: Farrukh Ijaz <email@hidden>)

  • Prev by Date: ERXFrameworkPrincipal
  • Next by Date: Re: ERXFrameworkPrincipal
  • Previous by thread: ERXFrameworkPrincipal
  • Next by thread: Re: ERXFrameworkPrincipal
  • Index(es):
    • Date
    • Thread