org.apache.turbine.services.assemblerbroker.util.java

## Class JavaBaseFactory<T extends Assembler>

- java.lang.Object
- - org.apache.turbine.services.assemblerbroker.util.java.JavaBaseFactory<T>

- Type Parameters:
    `T` - the specialized assembler type
  All Implemented Interfaces:
    Loader<T>, AssemblerFactory<T>
  Direct Known Subclasses:
    JavaActionFactory, JavaLayoutFactory, JavaNavigationFactory, JavaPageFactory, JavaScheduledJobFactory, JavaScreenFactory

      public abstract class JavaBaseFactory<T extends Assembler>
      extends Object
      implements AssemblerFactory<T>

  A screen factory that attempts to load a java class from the module packages defined in the TurbineResource.properties.
  Author:
    Leon Messerschmidt, Henning P. Schmiedehausen

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected org.apache.commons.logging.Log` | `log` Logging

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `JavaBaseFactory()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `T` | `getAssembler(String packageName, String name)` Get an Assembler.
    `int` | `getCacheSize()` Get the size of a possibly configured cache
    `abstract Loader<T>` | `getLoader()` Get the loader for this type of assembler

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.apache.turbine.services.assemblerbroker.util.AssemblerFactory

      `getManagedClass`

    - ### Methods inherited from interface org.apache.turbine.modules.Loader

      `getAssembler`

- - ### Field Detail

    - #### log

          protected org.apache.commons.logging.Log log

      Logging

  - ### Constructor Detail

    - #### JavaBaseFactory

          public JavaBaseFactory()

  - ### Method Detail

    - #### getAssembler

          public T getAssembler(String packageName,
                       String name)

      Get an Assembler.
      Parameters:
        `packageName` - java package name
        `name` - name of the requested Assembler
      Returns:
        an Assembler

    - #### getLoader

          public abstract Loader<T> getLoader()

      Get the loader for this type of assembler
      Specified by:
        `getLoader` in interface `AssemblerFactory<T extends Assembler>`
      Returns:
        a Loader

    - #### getCacheSize

          public int getCacheSize()

      Get the size of a possibly configured cache
      Specified by:
        `getCacheSize` in interface `Loader<T extends Assembler>`
      Returns:
        the size of the cache in bytes

Copyright © 2000–2018 The Apache Software Foundation. All rights reserved.