• 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
Application Startup...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Application Startup...


  • Subject: Application Startup...
  • From: "Colin Shreffler" <email@hidden>
  • Date: Fri, 27 Jan 2006 15:33:20 -0700

In my wo application, I have a class that was created by the development environment (when the project was created) called Application.java.

 

I am trying to add a start up routine to my application (to read information in a Properties file) and thought that the best place to put this would be in the constructor of this class. 

 

It does not, however, appear to be working…  the constructor doesn’t appear to get called.  Is there a better way to add start up routines?  In a different class perhaps?

 

I’m not sure if this is the class that is used to create the ‘actual’ application instance when the wo application starts up.  It does also inherit from WOApplication.

 

Further more, when I try the following cast in my code it fails:

 

Application app = (Application) this.application();

 

The instanced referenced by this.application() also inherits from WOApplication.  Why won’t this cast work?

 

Any help on this matter would be greatly appreciated.

 

Thanks,

Colin Shreffler

Castle Rock, CO

 

 

 

 _______________________________________________
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: Application Startup...
      • From: "Jerry W. Walker" <email@hidden>
    • Re: Application Startup...
      • From: Zak Burke <email@hidden>
  • Prev by Date: How many is too many instances?
  • Next by Date: why is Main being called again?
  • Previous by thread: Re: How many is too many instances?
  • Next by thread: Re: Application Startup...
  • Index(es):
    • Date
    • Thread