SmartBMPFactory Class
- public class SmartBMPFactory
extends Object
This class implements the Singleton design pattern for obtaining
SmartBMP instances. A single instance of a SmartBMP exists for
a given SmartBMP class name.
-
Hierarchy
-
Object
SmartBMPFactory
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SmartBMPFactory
public SmartBMPFactory()
createSmartBMP(String) Method
public static SmartBMP
createSmartBMP(String
smartBMPClass)
throws ClassNotFoundException
, IllegalAccessException
, InstantiationException
Returns the singleton SmartBMP for the specified class name. The
method uses the design pattern that reduces contention and
synchronization overhead.
Parameters
-
smartBMPClass
- class name of the SmartBMP
Returns
- singleton SmartBMP
Exceptions
-
ClassNotFoundException
-
IllegalAccessException
-
InstantiationException