Re: CFOBJECT Java

2001-07-04 Thread Laszlo Nadai

Hi Jordan,

Create a class (SingeltonCreator), with a method (getMySingleton), which returns a 
reference to the Singleton.
Then you can use the returned refernce to invoke the methods of your singleton class.










laszlo


Jordan Saardchit wrote:

> Does anyone know how to call a static method as opposed to calling the
> constructor to instantiate an object using CFOBJECT?  I've got a
> Singleton object that I am trying to implement, but when you use
> CFOBJECT with the CREATE action, it attempts to instantiate the object,
> and throws an exception due to a private constructor.  Any help would be
> great.  Thanks.
>
> Jordon
>
>
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFOBJECT Java

2001-07-03 Thread Dave Watts

> Does anyone know how to call a static method as opposed to calling 
> the constructor to instantiate an object using CFOBJECT? I've got a
> Singleton object that I am trying to implement, but when you use
> CFOBJECT with the CREATE action, it attempts to instantiate 
> the object, and throws an exception due to a private constructor.  
> Any help would be great. Thanks.

I suspect that you simply can't do that directly from CFOBJECT. You might
consider writing a wrapper object.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



CFOBJECT Java

2001-06-26 Thread Jordan Saardchit

> Does anyone know how to call a static method as opposed to calling the
> constructor to instantiate an object using CFOBJECT?  I've got a
> Singleton object that I am trying to implement, but when you use
> CFOBJECT with the CREATE action, it attempts to instantiate the object
> by calling the default constructor, which is private.  Any help would
> be great.  Thanks.
> 
> Jordon

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFOBJECT Java

2001-06-23 Thread David Shadovitz

What if you use CFOBJECT ACTION="connect"?
-David

On Friday, June 22, 2001 Jordan Saardchit [SMTP:[EMAIL PROTECTED]] wrote:
> Does anyone know how to call a static method as opposed to calling the
> constructor to instantiate an object using CFOBJECT?  I've got a
> Singleton object that I am trying to implement, but when you use
> CFOBJECT with the CREATE action, it attempts to instantiate the object,
> and throws an exception due to a private constructor.

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



CFOBJECT Java

2001-06-22 Thread Jordan Saardchit

Does anyone know how to call a static method as opposed to calling the
constructor to instantiate an object using CFOBJECT?  I've got a
Singleton object that I am trying to implement, but when you use
CFOBJECT with the CREATE action, it attempts to instantiate the object,
and throws an exception due to a private constructor.  Any help would be
great.  Thanks.

Jordon

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists