Quantcast
Channel: ColdFusion
Viewing all articles
Browse latest Browse all 1091

Enhanced Support For New Operator

$
0
0

In the 2018 release of ColdFusion, there is a handy way to create objects in ColdFusion.

The snippet below illustrates how you can use the new operator to create different type of objects.

 

//ColdFusion Component

obj = new component(“path.to.cfc”)

obj.init()

 

// Java

obj = new java(“java.class”)

obj.init()

 

// WebService

obj = new webservice(“http://webservice?wsdl”, {“webservice”: “parameters”})

 

Similarly, you can use the new operator to create com, CORBA, and .NET objects as well.


Viewing all articles
Browse latest Browse all 1091

Trending Articles