com.sun.enterprise.tools.verifier.apiscan.classfile
Class ClassFileLoaderFactory
java.lang.Object
com.sun.enterprise.tools.verifier.apiscan.classfile.ClassFileLoaderFactory
public class ClassFileLoaderFactory
- extends Object
A factory for ClassFileLoader so that we can control the creation of
ClassFileLoaders. More over, this factory can be dynamically configured by
setting the Java class name of the actual ClassFileLoader type in the system
property apiscan.ClassFileLoader. See newInstance() method.
- Author:
- Sanjeeb.Sahoo@Sun.COM
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassFileLoaderFactory
public ClassFileLoaderFactory()
newInstance
public static ClassFileLoader newInstance(Object[] args)
throws RuntimeException
- a factory method to create ClassFileLoader instance. It decides which
kind of loader class to instantioate based on the class name supplied by
the system property ClassFileLoader. If there is no such property set, it
defaults to
BCELClassFileLoader
- Parameters:
args
- Search path to be used by the ClassFileLoader. Depending on
the type of the ClassFileLoader requested, the semantics of
this argument varies.
- Throws:
RuntimeException
- If it could not instantiate the loader type
requested. The actual error is wrapped in this
exception.
Copyright © 2013 Oracle Corporation. All Rights Reserved.