From: bruce m. <tr...@us...> - 2004-07-30 01:33:42
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/compiler In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7955/modules/core/src/com/babeldoc/core/pipeline/compiler Modified Files: PipelineClassLoader.java PipelineStageCompiler.java Log Message: javadoc and formatting here. Index: PipelineStageCompiler.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/compiler/PipelineStageCompiler.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** PipelineStageCompiler.java 27 Jun 2003 02:19:59 -0000 1.2 --- PipelineStageCompiler.java 30 Jul 2004 01:33:02 -0000 1.3 *************** *** 98,117 **** */ public class PipelineStageCompiler { ! /** constant: the name of the configuration */ public static final String CONFIG_NAME = "pipeline/compiler"; ! /** constant: the name of the namespace property key */ public static final String NAMESPACE = "namespace"; ! /** constant: the name of the namespace property key */ public static final String COMPILER = "compile"; ! /** static: the singleton reference */ private static PipelineStageCompiler pipelineStageCompiler = null; ! /** instance: hashmap of the class loaders out there */ HashMap loaders = null; ! /** instance: temporary measure - single class loader for all pipelines */ PipelineClassLoader loader = null; --- 98,117 ---- */ public class PipelineStageCompiler { ! /** constant: the name of the configuration. */ public static final String CONFIG_NAME = "pipeline/compiler"; ! /** constant: the name of the namespace property key. */ public static final String NAMESPACE = "namespace"; ! /** constant: the name of the namespace property key. */ public static final String COMPILER = "compile"; ! /** static: the singleton reference. */ private static PipelineStageCompiler pipelineStageCompiler = null; ! /** instance: hashmap of the class loaders out there. */ HashMap loaders = null; ! /** instance: temporary measure - single class loader for all pipelines. */ PipelineClassLoader loader = null; *************** *** 131,135 **** } ! LogService.getInstance().logDebug("[PipelineStageCompiler.PipelineStageCompiler] creating class loader \"" + namespace + "\""); loader = new PipelineClassLoader(namespace); --- 131,136 ---- } ! if(LogService.getInstance().isDebugEnabled()) ! LogService.getInstance().logDebug("Creating class loader \"" + namespace + "\""); loader = new PipelineClassLoader(namespace); *************** *** 138,144 **** /** ! * Get the pipeline stage factory * ! * @return DOCUMENT ME! */ public static PipelineStageCompiler getInstance() { --- 139,145 ---- /** ! * Get the pipeline stage factory. * ! * @return instance of the pipeline stage compiler */ public static PipelineStageCompiler getInstance() { *************** *** 151,160 **** /** ! * Get the pipeline stage factory this pipeline stage factory name * * @param pFactory the factory of the pipeline * @param name the name of pipelinestage factory * ! * @return */ public IPipelineStageFactory getPipelineStageFactory( --- 152,161 ---- /** ! * Get the pipeline stage factory this pipeline stage factory name. * * @param pFactory the factory of the pipeline * @param name the name of pipelinestage factory * ! * @return pipeline stage factory. */ public IPipelineStageFactory getPipelineStageFactory( Index: PipelineClassLoader.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/compiler/PipelineClassLoader.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** PipelineClassLoader.java 27 Jun 2003 02:19:59 -0000 1.2 --- PipelineClassLoader.java 30 Jul 2004 01:33:02 -0000 1.3 *************** *** 66,93 **** package com.babeldoc.core.pipeline.compiler; /** ! * <strong>PipelineClassLoader</strong> ! * ! * <p> ! * This is pipeline classloader for getting the created classes. Now if the * class does not exist, then this will delegate (to where?) to create the ! * classes using bcel ! * </p> ! * ! * <p> ! * Title: Babel ! * </p> ! * ! * <p> ! * Description: Universal Document Processor ! * </p> ! * ! * <p> ! * Copyright: Copyright (c) 2002 ! * </p> ! * ! * <p> ! * Company: ! * </p> * * @author Bmcdonald --- 66,76 ---- package com.babeldoc.core.pipeline.compiler; + import com.babeldoc.core.pipeline.PipelineFactory; + import com.babeldoc.core.pipeline.IPipelineStageFactory; + /** ! * This is pipeline classloader for getting the compiled/created classes. Now if the * class does not exist, then this will delegate (to where?) to create the ! * classes using bcel or javaassist. * * @author Bmcdonald *************** *** 95,104 **** */ public class PipelineClassLoader extends ClassLoader { ! /** instance: the name of the pipeline "package" */ private String namespace; /** * Package level security for this classloader (not to be created out of this ! * package - just to be safe!) * * @param namespace the namespace to look for the pipelines --- 78,87 ---- */ public class PipelineClassLoader extends ClassLoader { ! /** instance: the name of the pipeline "package". */ private String namespace; /** * Package level security for this classloader (not to be created out of this ! * package - just to be safe!). * * @param namespace the namespace to look for the pipelines *************** *** 117,126 **** * of it. * ! * @param pFactory DOCUMENT ME! ! * @param name * ! * @return */ ! public com.babeldoc.core.pipeline.IPipelineStageFactory getCompiledPipelineStageFactory( com.babeldoc.core.pipeline.PipelineFactory pFactory, String name) { name += getNamespace(); --- 100,109 ---- * of it. * ! * @param pFactory pipeline factory ! * @param name nameof something * ! * @return compiled pipeline factory */ ! public IPipelineStageFactory getCompiledPipelineStageFactory( com.babeldoc.core.pipeline.PipelineFactory pFactory, String name) { name += getNamespace(); *************** *** 149,155 **** /** ! * Get the namespace * ! * @return */ public String getNamespace() { --- 132,138 ---- /** ! * Get the namespace. * ! * @return name space */ public String getNamespace() { *************** *** 158,165 **** /** ! * Load the class * * @param name the name of the pipeline to load. - * * @return the class */ --- 141,147 ---- /** ! * Load the class. * * @param name the name of the pipeline to load. * @return the class */ *************** *** 175,187 **** /** ! * Make the class using bcel for the name, factory * ! * @param pFactory DOCUMENT ME! ! * @param name DOCUMENT ME! * ! * @return DOCUMENT ME! */ ! protected byte[] compileFactory( ! com.babeldoc.core.pipeline.PipelineFactory pFactory, String name) { /* LogService.getInstance().logDebug("[PipelineClassLoader.compileFactory] Creating synthetic class"); --- 157,168 ---- /** ! * Make the class using bcel for the name, factory. * ! * @param pFactory pipeline factory ! * @param name name of something. * ! * @return byte array of compiled class */ ! protected byte[] compileFactory(PipelineFactory pFactory, String name) { /* LogService.getInstance().logDebug("[PipelineClassLoader.compileFactory] Creating synthetic class"); |