public class ImplementationFactory extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
ImplementationFactory()
Allows third parties to replace the implementation factory
|
| Modifier and Type | Method and Description |
|---|---|
Object |
createImplementation()
Factory method to create the implementation instance
|
static ImplementationFactory |
getInstance()
Returns the singleton instance of this class
|
static void |
setInstance(ImplementationFactory i)
Install a new implementation factory, this method is invoked by implementors
to replace a factory.
|
protected ImplementationFactory()
public static ImplementationFactory getInstance()
public static void setInstance(ImplementationFactory i)
i - implementation factory instancepublic Object createImplementation()
Copyright © 2022. All rights reserved.