• How coldfusion compiler compiles the templates and files ?

     

    A compiler is always a very important part of the coldfusion framework. The coldfusion compiler compiles the coldfusion templates and files in to the Java byte code. Coldfusion compiler works as a command line interface utility on windows.  

    The working mechanism of coldfusion compiler is incredible in itself, because it works upon the sourceless codes and files. Being sourceless means that the templates will have the unprocessed java bytecode but at the execution time they will be handled as CFML code. It is done for the protection for the coldfusion intellectual property security.

    There are three type of coldfusion compiling elements -

    • webroot

    • directory-to-compile

    • Output-Directory

    Web root directory shows the qualified and predefined path to the server root directory.

    Directory-to-compile element shows the complete information of the templates to be compiled. It is necessary to be in the webroot directory.

    Output directory is defined as the qualified web directory to the compiled and deployable files.

    Compilation of the coldfusion templates is started when the server is restarted. The compiler compresses whole the templates into the Java byte code and stores into the memory. It can increase the initial requests to the server for some time. The caching facility is also performed with the coldfusion compiler so that we can improve the server performance.        

    Hope you have liked this post ! Thanks for reading it !

    reference link - 

    coldfusion web developers - lucid outsourcing

    coldfusion development services - coldfusion support


  • What is the use of the coldfusion meta data ?

     

    The coding documentation is very necessary and useful because it ensures the longevity and usefulness of the component. In additional, this documentation can be used again while it is needed. It is helpful in the larger team environment and the confusions and purpose of the code can be alleviated easily.

    In coldfusion framework, the development of custom meta data is provided to the end user and developer. The purpose of creating the metadata in a method (function) is to provide the value to the function developed by the application developer. It enhances the documentation availability of the application.

    The biggest quality of the meta attributes is that they have no impact on the working of properties, functions and methods. They also cannot be viewed by the CFC explorer in introspection. The meta data usually shows the information pertaining the object. There are 2 methods to show the metadata -

    • getmetadata ()

    • getcomponentmetadata ()

    getmetadata () is used to retrieve the metadata attributes of any functions defined in the application. In the parameter of the function, the expression of an object is passed as a parameter.   

    getcomponentmetadata () is used to retrieve the metadata of an object, functions, properties and methods and it is similar to the working of getmetadata (). The overall difference is that this method can also be used to take the instance of the object which isn’t defined.

    reference link - 

    https://tirupatitent11.blogspot.com/2019/01/how-to-get-metadata-of-functions-in.html


Free Website Created & Hosted with Website.com Website Builder

Create Yours

Create Free Website Now

Stunning Website Templates. Free Domain.
website.com: Get Your .COM Domain for Just $14.77/year No Hidden Fees Register Now