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.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.logging.log4j.Logger
log
Logging
-
Constructor Summary
Constructors Constructor Description JavaBaseFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description T
getAssembler(String packageName, String name)
Get an Assembler.int
getCacheSize()
Get the size of a possibly configured cacheabstract 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.logging.log4j.Logger log
Logging
-
-
Constructor Detail
-
JavaBaseFactory
public JavaBaseFactory()
-
-
Method Detail
-
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 interfaceAssemblerFactory<T extends Assembler>
- Returns:
- a Loader
-
getCacheSize
public int getCacheSize()
Get the size of a possibly configured cache- Specified by:
getCacheSize
in interfaceLoader<T extends Assembler>
- Returns:
- the size of the cache in bytes
-
-