org.anadix.factories
Class ObjectFactory

java.lang.Object
  extended by org.anadix.factories.ObjectFactory

Deprecated. Use org.anadix.Anadix instead.

@Deprecated
public final class ObjectFactory
extends Object

Creates instances of various objects used by analyzer

Version:
$Id: $
Author:
tomason

Method Summary
static Analyzer newAnalyzer()
          Deprecated. Creates a new instance of analyzer using default Parser and default ConditionSet
static Analyzer newAnalyzer(Class<? extends ConditionSet> conditionsClass)
          Deprecated. Creates a new instance of analyzer using given condition set and default Parser
static Analyzer newAnalyzer(Class<? extends Parser> parserClass, Class<? extends ConditionSet> conditionsClass)
          Deprecated. Creates a new instance of analyzer using given condition set and parser
static Analyzer newAnalyzer(Parser p, ConditionSet c)
          Deprecated. Creates a new instance of analyzer using given Parser and ConditionSet
static ConditionSet newConditionSet(Class<? extends ConditionSet> clazz)
          Deprecated. Creates new instance of ConditionSet by invoking default constructor in given class.
static ConditionSet newConditionSet(String className)
          Deprecated. Creates new instance of ConditionSet by invoking default constructor in class defined by given class name.
static ReportFormatter newFormatter()
          Deprecated. Creates a new instance of default ReportFormatter.
static ReportFormatter newFormatter(Class<? extends ReportFormatter> clazz)
          Deprecated. Creates a new instance of ReportFormatter by invoking default constructor in class defined by given class.
static ReportFormatter newFormatter(String className)
          Deprecated. Creates a new instance of ReportFormatter by invoking default constructor in class defined by given class name.
static Parser newParser(Class<? extends Parser> clazz)
          Deprecated. Creates new instance of Parser by invoking default constructor in given class.
static Parser newParser(String className)
          Deprecated. Creates new instance of Parser by invoking default constructor in class defined by given class name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newParser

public static Parser newParser(String className)
                        throws InstantiationException
Deprecated. 
Creates new instance of Parser by invoking default constructor in class defined by given class name.

Parameters:
className - - name of the class to be constructed
Returns:
new instance of Parser
Throws:
InstantiationException - - when exception occurs during creating new instance

newParser

public static Parser newParser(Class<? extends Parser> clazz)
                        throws InstantiationException
Deprecated. 
Creates new instance of Parser by invoking default constructor in given class.

Parameters:
clazz - - class to be constructed
Returns:
new instance of Parser
Throws:
InstantiationException - - when exception occurs during creating new instance

newConditionSet

public static ConditionSet newConditionSet(String className)
                                    throws InstantiationException
Deprecated. 
Creates new instance of ConditionSet by invoking default constructor in class defined by given class name. If null is given as a parameter default ConditionSet is constructed.

Parameters:
className - - name of the class to be constructed
Returns:
new instance of ConditionSet
Throws:
InstantiationException - - when exception occurs during creating new instance

newConditionSet

public static ConditionSet newConditionSet(Class<? extends ConditionSet> clazz)
                                    throws InstantiationException
Deprecated. 
Creates new instance of ConditionSet by invoking default constructor in given class.

Parameters:
clazz - - class to be constructed
Returns:
new instance of ConditionSet
Throws:
InstantiationException - - when exception occurs during creating new instance

newAnalyzer

public static Analyzer newAnalyzer()
                            throws InstantiationException
Deprecated. 
Creates a new instance of analyzer using default Parser and default ConditionSet

Returns:
new instance of Analyzer
Throws:
InstantiationException - - when exception occurs during creating new instance

newAnalyzer

public static Analyzer newAnalyzer(Class<? extends ConditionSet> conditionsClass)
                            throws InstantiationException
Deprecated. 
Creates a new instance of analyzer using given condition set and default Parser

Parameters:
conditionsClass - - conditions to use
Returns:
new instance of Analyzer
Throws:
InstantiationException - - when exception occurs during creating new instance

newAnalyzer

public static Analyzer newAnalyzer(Class<? extends Parser> parserClass,
                                   Class<? extends ConditionSet> conditionsClass)
                            throws InstantiationException
Deprecated. 
Creates a new instance of analyzer using given condition set and parser

Parameters:
parserClass - - parser to use
conditionsClass - - conditions to use
Returns:
new instance of Analyzer
Throws:
InstantiationException - - when exception occurs during creating new instance

newAnalyzer

public static Analyzer newAnalyzer(Parser p,
                                   ConditionSet c)
                            throws InstantiationException
Deprecated. 
Creates a new instance of analyzer using given Parser and ConditionSet

Parameters:
p - - Parser to use
c - - ConditionSet to use
Returns:
new instance of Analyzer
Throws:
InstantiationException - - when exception occurs during creating new instance

newFormatter

public static ReportFormatter newFormatter()
                                    throws InstantiationException
Deprecated. 
Creates a new instance of default ReportFormatter.

Returns:
new instance of ReportFormatter
Throws:
InstantiationException - - when exception occurs during creating new instance

newFormatter

public static ReportFormatter newFormatter(String className)
                                    throws InstantiationException
Deprecated. 
Creates a new instance of ReportFormatter by invoking default constructor in class defined by given class name.

Parameters:
className - - name of the class to be constructed
Returns:
new instance of ReportFormatter
Throws:
InstantiationException - - when exception occurs during creating new instance

newFormatter

public static ReportFormatter newFormatter(Class<? extends ReportFormatter> clazz)
                                    throws InstantiationException
Deprecated. 
Creates a new instance of ReportFormatter by invoking default constructor in class defined by given class.

Parameters:
clazz - - class to be constructed
Returns:
new instance of ReportFormatter
Throws:
InstantiationException - - when exception occurs during creating new instance


Copyright © 2011. All Rights Reserved.