FindBugs™ 1.3.9

edu.umd.cs.findbugs.classfile
Class ReflectionDatabaseFactory<E>

java.lang.Object
  extended by edu.umd.cs.findbugs.classfile.ReflectionDatabaseFactory<E>
All Implemented Interfaces:
IDatabaseFactory<E>

public class ReflectionDatabaseFactory<E>
extends java.lang.Object
implements IDatabaseFactory<E>

A generic database factory that tries to create the database by (in order of preference)

  1. Invoking a static create method
  2. Invoking a no-arg constructor

Author:
David Hovemeyer

Constructor Summary
ReflectionDatabaseFactory(java.lang.Class<E> databaseClass)
           
 
Method Summary
 E createDatabase()
           
 void registerWith(IAnalysisCache analysisCache)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectionDatabaseFactory

public ReflectionDatabaseFactory(java.lang.Class<E> databaseClass)
Method Detail

createDatabase

public E createDatabase()
                 throws CheckedAnalysisException
Specified by:
createDatabase in interface IDatabaseFactory<E>
Throws:
CheckedAnalysisException

registerWith

public void registerWith(IAnalysisCache analysisCache)
Specified by:
registerWith in interface IDatabaseFactory<E>

FindBugs™ 1.3.9

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.