public abstract class AbstractFactoryBase extends Object
Constructor and Description |
---|
AbstractFactoryBase() |
Modifier and Type | Method and Description |
---|---|
static <I,F extends AbstractFactoryBase> |
getInstance(Class<F> factoryType)
Instantiates the configured implementation of an abstract factory.
|
protected void |
init() |
static <F extends AbstractFactoryBase> |
isFactoryRegistered(Class<F> factoryType)
Is factory registered boolean.
|
static <I,F extends AbstractFactoryBase> |
registerFactory(Class<F> factory,
Class<? extends F> impl)
Registers implementor for an abstract factory.
|
protected static void |
registerFactory(String factoryName,
String implName) |
protected void |
stop() |
static void |
stopAll()
Stop all.
|
static <F extends AbstractFactoryBase> |
unregisterFactory(Class<F> factory)
Unregister factory.
|
public static <I,F extends AbstractFactoryBase> void registerFactory(Class<F> factory, Class<? extends F> impl)
I
- Java interface type instantiated by abstract factoryF
- Type specific abstract factory for concrete Java interfacefactory
- Java class of a type specific abstract factoryimpl
- Java class of type specific factory implementorpublic static <F extends AbstractFactoryBase> void unregisterFactory(Class<F> factory)
F
- the type parameterfactory
- the factorypublic static <I,F extends AbstractFactoryBase> F getInstance(Class<F> factoryType)
I
- Java interface type instantiated by abstract factoryF
- Type specific abstract factory for concrete Java interfacefactoryType
- Java class of type specific abstract factorypublic static <F extends AbstractFactoryBase> boolean isFactoryRegistered(Class<F> factoryType)
F
- the type parameterfactoryType
- the factory typepublic static void stopAll()
protected void init()
protected void stop()
Copyright © 2017. All rights reserved.