RE: using Application.java
RE: using Application.java
- Subject: RE: using Application.java
- From: <email@hidden>
- Date: Thu, 19 May 2005 10:54:11 +0200
- Thread-topic: using Application.java
public class Application
extends WOApplication
{
public MyClass myInstance()
{
return _myInstance;
}
}
public class MyComponent
extends WOComponent
{
Application application = (Application) application();
MyClass instance = application.myInstance();
Object result = instance.function();
}
-----Original Message-----
From: webobjects-dev-bounces+pierre.bernard=email@hidden
[mailto:webobjects-dev-bounces+pierre.bernard=email@hidden]On
Behalf Of John Q.
Sent: Thursday, May 19, 2005 10:44 AM
To: email@hidden
Subject: Re: using Application.java
Sorry,
I have miss the main point from my problem.
my problem is to access the written class. I create a normal instance
like MyClass myClass = new MyClass();
and then how can I access the class? I have try application
().myClass.funktion();
but wo can not find myClass!!
Thanks
Raphael
Am 19.05.2005 um 10:32 schrieb John Q.:
> Hi,
> I would like to create a instance of a own class in the
> Application.java wich i would like to access from
> the WOComponents.
> Is their a how to in the net ? or has someone a answer?
>
> Thanks
> Raphael
>
_______________________________________________
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
**********************************************************************
This email and any files transmitted with it are intended solely for
the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender
of this message. (email@hidden)
This email message has been checked for the presence of computer
viruses; however this protection does not ensure this message is
virus free.
Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
**********************************************************************
_______________________________________________
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