Loading Java Cfx Classes; Automatic Class Reloading - MACROMEDIA COLDFUSION 5-DEVELOPING Develop Manual

Table of Contents

Advertisement

Writing a Java CFX
Method
addRows
setData
For detailed reference information on each of these interfaces, see the CFML
Reference.

Loading Java CFX classes

Each Java CFX class has its own associated
dependent classes also located in the
reloaded after a change, a new
class. This special behavior is similar to the way Java servlets are handled by the Java
Web server and other servlet engines, and is required in order to implement

automatic class reloading.

However, this behavior can cause subtle problems when you are attempting to
perform casts on instances of classes loaded from a different
fails even though the objects are apparently of the same type. This is because the
object was created from a different
same type.
To solve this problem, only perform casts to class or interface types that are loaded
using the standard Java class path, that is, classes not located in the
directory. This works because classes loaded from outside the
always loaded using the system
runtime type.
Automatic class reloading
You can determine how the server treats changed Java CFX class files by specifying
the
describes the allowable values for the
Value
Auto
Always
Never
Description
Adds a new row to the query.
Sets a data element within the query.
attribute when you use a CFX tag in your CFML page. The following table
reload
Description
Automatically reload Java CFX and dependent classes within the
directory whenever the CFX class file changes. Does not
classes
reload if a dependent class file changes but the CFX class file does not
change.
Always reload Java CFX and dependent classes within the
directory. Ensures a reload even if a dependent class changes, but the
CFX class file does not change.
Never reload Java CFX classes. Load them once per server lifetime.
ClassLoader
directory. When Java CFXs are
classes
is associated with the freshly loaded
ClassLoader
and is therefore technically not the
ClassLoader
, and therefore, have a consistent
ClassLoader
attribute:
reload
that loads it and any
. The cast
ClassLoader
classes
directory are
classes
classes
395

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 5

Table of Contents