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.