cfboom.util

Class JavaLoader

lucee.Component
    extended by cfboom.lang.Object
      extended by cfboom.util.JavaLoader

A facade for creating Java objects. Indended to be used as Singletons where each configuration indicates whether it uses `cbjavaloader` or not.

Class Attributes:
  • output : false
  •  
  • displayname : Class JavaLoader
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • auther : Joel Tobey
  •  
  • persistent : false
  •  
    Property Summary
    type property default serializable required
    any log


    • access = public
    • returntype = any
    • inject = logbox:logger:{this}
    true false
    any wirebox


    • access = public
    • returntype = any
    • inject = wirebox
    true false
    Constructor Summary
    init([boolean useJavaLoader='false'])
          Constructor.
    Method Summary
    any create(string class)
         Creates Java objects by using either createObject() or `cbjavaloader`.
    any getClassLoader()
         Returns the ClassLoader in case you need access to it.
    boolean isUsingJavaLoader()
         Indicates whether this loader is using `cbjavaloader` or not.
    void onDIComplete()
         Runs after Dependency Injection is complete.
    void setUseJavaLoader(boolean useJavaLoader)
         Convenience method of setting 'useJavaLoader' at runtime.
     
    Methods inherited from class cfboom.lang.Object
    $equals, getComponentName, getIdentityHashCode, getIdentityString, getMeta, hashCode, toString
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init([boolean useJavaLoader='false'])

    Constructor. useJavaLoader.hint Flag indicating whether this loader will use `cbjavaloader` of not.

    Parameters:
    useJavaLoader

    Property Detail

    log

    property any log

    Attributes:
    access - public
    required - false
    returntype - any
    inject - logbox:logger:{this}
    serializable - true

    wirebox

    property any wirebox

    Attributes:
    access - public
    required - false
    returntype - any
    inject - wirebox
    serializable - true

    Method Detail

    create

    public any create(string class)

    Creates Java objects by using either createObject() or `cbjavaloader`.

    Parameters:
    class

    getClassLoader

    public any getClassLoader()

    Returns the ClassLoader in case you need access to it.


    isUsingJavaLoader

    public boolean isUsingJavaLoader()

    Indicates whether this loader is using `cbjavaloader` or not.


    onDIComplete

    public void onDIComplete()

    Runs after Dependency Injection is complete.


    setUseJavaLoader

    public void setUseJavaLoader(boolean useJavaLoader)

    Convenience method of setting 'useJavaLoader' at runtime. useJavaLoader.hint Flag indicating whether this loader will use `cbjavaloader` of not.

    Parameters:
    useJavaLoader