Java

edit

Functions

  • BundleInfo()

    if the given object is loaded by an OSGi bundle, this function is returning information about that bundle

  • CreateDynamicProxy()

    Wraps the given component with a Java class that implements the specified interfaces. If no interfaces are provided, Lucee will create a proxy based on the component's interface itself.

  • CreateObject()

    The CreateObject function takes different arguments depending on the value of the first argument:

  • GetClassPath()

    returns an array containing the Java classpath of the current environment.

  • GetPageContext()

    Gets the current PageContext object that provides access to page attributes and configuration, request and response objects.

  • IsInstanceOf()

    Determines whether an object is an instance of a Lucee interface or component, or of a Java class.

  • JavaCast()

    Converts the data type of a CFML variable to pass as an argument to an overloaded method of a Java object. Use only for scalar and string arguments. [type - quickly] boolean,int,long,float,double,string

  • ManifestRead()

    reads a manifest file and returns the content as struct

  • MavenInfo()

    Retrieves information about a Maven artifact and its dependencies. This function allows you to query details about a specific Maven artifact by providing its coordinates (groupId, artifactId, and optionally version). It returns a query containing information about the artifact itself and all of its dependencies based on the specified scope

  • MavenLoad()

    Loads all JAR files from one or more Maven endpoints and makes them available for use within the Lucee server environment. This function can be used to load dependencies, including transitive ones, for example at server startup. Example Usage of MavenLoad Function The MavenLoad function allows you to load JAR files from Maven repositories, including all transitive dependencies

  • Serialize()

    opposite of evaluate, this function serialize all cfml object and all serializable Java objects. can also serialize Components.

  • UnserializeJava()

    literal definition of a serialized Java Object by function serialize

Tags

  • <cfimport>

    The tag import has multiple purposes: 1. Import components with the attribute path 2. Import Java classes (Lucee 6.2+) with the attribute path or its alias java 3. Import CFML/JSP custom tags with the attributes prefix and taglib In script syntax, you can use: - cfimport(path=&amp;quot;org.lucee.example.MyCFC&amp;quot;); - `import org

  • <cfobject>

    Lets you call methods in COM, CORBA, and JAVA objects.

Guides