public enum TinyPlugzLookUp extends Enum<TinyPlugzLookUp>
| Enum Constant and Description |
|---|
DEFAULT_INSTANCE_STRATEGY
Strategy for creating a default implementation of TinyPlugz
|
SPI_STRATEGY
Strategy for determining the TinyPlugz implementation using the
ServiceLoader |
STATIC_STRATEGY
Strategy for using a property defined class as TinyPlugz implementation.
|
| Modifier and Type | Method and Description |
|---|---|
TinyPlugz |
getInstance(ClassLoader classLoader,
Map<Object,Object> props)
Creates a TinyPlugz instance, configuring it according to the given
properties.
|
abstract TinyPlugz |
getInstance(ClassLoader classLoader,
ServiceLoaderWrapper serviceLoader,
Map<Object,Object> props)
Creates a TinyPlugz instance, configuring it according to the given
properties.
|
static TinyPlugzLookUp |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TinyPlugzLookUp[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TinyPlugzLookUp SPI_STRATEGY
ServiceLoaderpublic static final TinyPlugzLookUp DEFAULT_INSTANCE_STRATEGY
public static final TinyPlugzLookUp STATIC_STRATEGY
public static TinyPlugzLookUp[] values()
for (TinyPlugzLookUp c : TinyPlugzLookUp.values()) System.out.println(c);
public static TinyPlugzLookUp valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final TinyPlugz getInstance(ClassLoader classLoader, Map<Object,Object> props)
classLoader - The parent ClassLoader.props - Configuration properties.TinyPlugzException - If configuring the new instance fails.public abstract TinyPlugz getInstance(ClassLoader classLoader, ServiceLoaderWrapper serviceLoader, Map<Object,Object> props)
classLoader - The parent ClassLoader.serviceLoader - A loader for searching service implementations.props - Configuration properties.TinyPlugzException - If configuring the new instance fails.Copyright © 2014–2015. All rights reserved.