org.apache.turbine.services.assemblerbroker.util.java
Class JavaBaseFactory<T extends Assembler>
java.lang.Object
org.apache.turbine.services.assemblerbroker.util.java.JavaBaseFactory<T>
- 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.
- Version:
- $Id: JavaBaseFactory.java 1078552 2011-03-06 19:58:46Z tv $
- Author:
- Leon Messerschmidt, Henning P. Schmiedehausen
Field Summary |
protected org.apache.commons.logging.Log |
log
Logging |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected org.apache.commons.logging.Log log
- Logging
JavaBaseFactory
public JavaBaseFactory()
getAssembler
public T getAssembler(String packageName,
String name)
- Get an Assembler.
- Parameters:
packageName
- java package namename
- 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-2011 The Apache Software Foundation. All Rights Reserved.