FileDocCategorySizeDatePackage
SingleInstanceObjectFactory.javaAPI DocGlassfish v2 API4552Fri May 04 22:34:40 BST 2007com.sun.enterprise.diagnostics

SingleInstanceObjectFactory

public abstract class SingleInstanceObjectFactory extends Object implements BackendObjectFactory
author
mu125243

Fields Summary
protected Map
input
protected CLIOptions
options
protected ReportConfig
config
protected ReportTarget
target
protected ExecutionContext
context
protected Logger
logger
Constructors Summary
public SingleInstanceObjectFactory(Map input)
Creates a new instance of BackendObjectFactory

           
       
        this.input = input;
    
Methods Summary
protected voidanalyzeInput()

        if(input != null) {
            TargetResolver resolver = null;
            boolean local;
            List<ServiceConfig> serviceConfigs = null;
            
            options = new CLIOptions(input);
            local = isLocal();
            resolver = createTargetResolver(local);
            target = resolver.resolve();
            context = resolver.getExecutionContext();
            serviceConfigs = resolver.getServiceConfigs();
            logger = context.getLogger();
            config = new ReportConfig(options, target,context);
            config.addInstanceConfigs(serviceConfigs);
        }
    
public abstract com.sun.enterprise.diagnostics.report.html.HTMLReportWritercreateHTMLReportWriter()

public abstract com.sun.enterprise.diagnostics.collect.CollectorcreateHarvester()

public ReportGeneratorcreateReportGenerator()

        analyzeInput();
        Collector harvester = createHarvester();
        HTMLReportWriter reportWriter = createHTMLReportWriter();
        return createReportGenerator(config,harvester,reportWriter);
    
public abstract ReportGeneratorcreateReportGenerator(ReportConfig config, com.sun.enterprise.diagnostics.collect.Collector harvester, com.sun.enterprise.diagnostics.report.html.HTMLReportWriter reportWriter)

public abstract TargetResolvercreateTargetResolver(boolean local)

protected ReportConfiggetReportConfig()

        return config;
    
protected booleanisLocal()

        if(options.isLocal() && (options.getTargetDir() != null) )
            return true;
        return false;