coldbox.system.core.javaloader

Class JavaProxy

WEB-INF.cftags.component
        extended by coldbox.system.core.javaloader.JavaProxy
Class Attributes:
  • output : false
  •  
    Constructor Summary
    init()
          create an instance of this object.
    Method Summary
    private array _buildArgumentArray(struct arguments)
         builds an argument array out of the arguments.
    any _findMethod(string methodName, struct methodArgs)
         finds the method that closest matches the signature.
    private any _getArray()
    private any _getClass()
    private any _getClassInstance()
    private any _getClassMethod()
    private struct _getMethodCollection()
    private any _getModifier()
    private any _getObjectClass()
    private boolean _hasClassInstance()
         if the proxy has an instance yet.
    JavaProxy _init(any class)
         Constructor.
    private void _initMethodCollection()
         creates a method collection of all the methods that are available on the class (this may be cached externally later).
    private any _resolveMethodByParams(string methodName, array decision, struct methodArgs)
         resolves the method to use by the parameters provided.
    private void _setArray(any Array)
    private void _setClass(any Class)
    private void _setClassInstance(any ClassInstance)
    private void _setClassMethod(any ClassMethod)
    private void _setMethodCollection(struct MethodCollection)
    private void _setModifier(any Modifier)
    private void _setObjectClass(any ObjectClass)
    private void _setStaticFields()
         loops around all the fields and sets the static one to this scope.
    any onMissingMethod(string missingMethodName, struct missingMethodArguments)
         wires the coldfusion invocation to the Java Object.
    private any throwException(string type, string message, [string detail=''])
         Throws an Exception.
     
    Methods inherited from class WEB-INF.cftags.component
    None

    Constructor Detail

    init

    public init()

    create an instance of this object


    Method Detail

    _buildArgumentArray

    private array _buildArgumentArray(struct arguments)

    builds an argument array out of the arguments

    Parameters:
    arguments - the arguments passed through

    _findMethod

    public any _findMethod(string methodName, struct methodArgs)

    finds the method that closest matches the signature

    Parameters:
    methodName - the name of the method
    methodArgs - the arguments to look for

    _getArray

    private any _getArray()


    _getClass

    private any _getClass()


    _getClassInstance

    private any _getClassInstance()


    _getClassMethod

    private any _getClassMethod()


    _getMethodCollection

    private struct _getMethodCollection()


    _getModifier

    private any _getModifier()


    _getObjectClass

    private any _getObjectClass()


    _hasClassInstance

    private boolean _hasClassInstance()

    if the proxy has an instance yet


    _init

    public JavaProxy _init(any class)

    Constructor

    Parameters:
    class - the java.lang.Class object this represents

    _initMethodCollection

    private void _initMethodCollection()

    creates a method collection of all the methods that are available on the class (this may be cached externally later)


    _resolveMethodByParams

    private any _resolveMethodByParams(string methodName, array decision, struct methodArgs)

    resolves the method to use by the parameters provided

    Parameters:
    methodName - the name of the method
    decision - the array of methods to decide from
    methodArgs - the arguments to look for

    _setArray

    private void _setArray(any Array)

    Parameters:
    Array

    _setClass

    private void _setClass(any Class)

    Parameters:
    Class

    _setClassInstance

    private void _setClassInstance(any ClassInstance)

    Parameters:
    ClassInstance

    _setClassMethod

    private void _setClassMethod(any ClassMethod)

    Parameters:
    ClassMethod

    _setMethodCollection

    private void _setMethodCollection(struct MethodCollection)

    Parameters:
    MethodCollection

    _setModifier

    private void _setModifier(any Modifier)

    Parameters:
    Modifier

    _setObjectClass

    private void _setObjectClass(any ObjectClass)

    Parameters:
    ObjectClass

    _setStaticFields

    private void _setStaticFields()

    loops around all the fields and sets the static one to this scope


    onMissingMethod

    public any onMissingMethod(string missingMethodName, struct missingMethodArguments)

    wires the coldfusion invocation to the Java Object

    Parameters:
    missingMethodName -
    missingMethodArguments -

    throwException

    private any throwException(string type, string message, [string detail=''])

    Throws an Exception

    Parameters:
    type - The type of exception
    message - The message to accompany the exception
    detail - The detail message for the exception