public enum ServiceLoaderObjectFactory extends Enum<ServiceLoaderObjectFactory> implements ObjectFactory
ObjectFactory
and delegates out
to that instance to retrieve instances for the requested class type.Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
<T> T |
get(Class<T> tClass)
Given the class provides a corresponding instance.
|
static ServiceLoaderObjectFactory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServiceLoaderObjectFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServiceLoaderObjectFactory INSTANCE
public static ServiceLoaderObjectFactory[] values()
for (ServiceLoaderObjectFactory c : ServiceLoaderObjectFactory.values()) System.out.println(c);
public static ServiceLoaderObjectFactory 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 <T> T get(Class<T> tClass)
ObjectFactory
get
in interface ObjectFactory
T
- class typetClass
- class of instance to be returnedCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.