CreateObject()
Creates an object and makes it available in the CFML space. Defaults type to a 'component'
Usage
OBJECT = CreateObject(
type,
object,
argument
)
Argument | Summary |
---|---|
type | type of object ('component', 'java' or 'webservice') |
object | object to create; if 'component' the location of the CFC; if 'java' the full class name; if 'webservice' the WSDL [optional] |
argument | if type='webservice' then this is the arguments; if type='java' then this is the JAR to load from [optional] |
Calling
Supports named-parameter calling allowing you to use the function like:
CreateObject( type=?, object=?, argument=? );
Supports passing parameters as a structure using ArgumentCollection:
CreateObject( ArgumentCollection={ type : ?, object : ?, argument : ? } );
See Also
Applicationcount
Applicationlist
Applicationremove
CreateObject
CreateUuid
Cronenable
Cronsetdirectory
Dataload
Datasave
DeleteClientvariable
Duplicate
GetApplicationmetadata
GetBasetaglist
GetBasetemplatepath
GetClientvariableslist
GetContextroot
GetCurrenttemplatepath
GetHashcode
GetJournaldirectory
GetLocalhostip
GetMailspooldirectory
GetMailundelivereddirectory
GetTagstack
GetTemplatepath
GetVariable
HtmlBody
HtmlHead
Httpdump
Invoke
JmxGetdomainlist
Journalread
Journalreadsession
Journalreadtodatasource
Logger
Pause
Renderinclude
Sessioncount
SetCookie
SetHttpstatus
SetHttpvalue
SetVariable
SystemFilecacheflush
SystemFilecacheinfo
SystemFilecachelist
SystemMemory
Throw
Throwobject
WriteDump
WriteLog
WriteOutput