• 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: Custom frameworks with references to Application and Session
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom frameworks with references to Application and Session


  • Subject: Re: Custom frameworks with references to Application and Session
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 24 Sep 2004 08:26:07 -0700

Not entirely sure what you are asking. You can get a reference to the application like this

CustomApp app = (CustomApp) WOApplication.application();

The session would need to be passed somehow as there are multiple.

Chuck


On Sep 23, 2004, at 9:59 PM, Marek Wawrzyczny wrote:

Hi all,

This is probably a very basic question but, I am just trying to get my head around passing my Application and Session classes into one of my frameworks.

The scenario is, I have several (different) applications that use the same controller class base (and other helper classes). Obviously I want to move these classes into a framework I can share. Some of these classes refer to custom Application or Session methods.

I have already defined Application and Session interface classes (that define these methods), but what is the best way of passing the actual Application class to the framework, I'd like to avoid passing references to Application in constructors or special accessor methods to my controller/helper classes. I am curious as to how WO deals with resolving the -DWOApplicationClass parameter into a class... can I implement something similar...

Marek Wawrzyczny

software engineer
-------------------------->
ish group pty ltd
http://www.ish.com.au
7 Darghan St Glebe 2037 Australia
phone +61 2 9660 1400   fax +61 2 9660 7400

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
village.net


This email sent to email@hidden

--
Practical WebObjects - a book for intermediate WebObjects developers who want to increase their overall knowledge of WebObjects, or those who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects




_______________________________________________
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


References: 
 >Custom frameworks with references to Application and Session (From: Marek Wawrzyczny <email@hidden>)

  • Prev by Date: Re: CSS AND D2W!!! [Question about RULE files]
  • Next by Date: wo processes and ssl wonderments
  • Previous by thread: Custom frameworks with references to Application and Session
  • Next by thread: Re: Custom frameworks with references to Application and Session
  • Index(es):
    • Date
    • Thread