public enum SingletonServiceNameFactory extends Enum<SingletonServiceNameFactory> implements DefaultableUnaryServiceNameFactoryProvider
Enum Constant and Description |
---|
SINGLETON_POLICY |
Modifier and Type | Method and Description |
---|---|
ServiceNameFactory |
getDefaultServiceNameFactory()
The factory from which to generate a
ServiceName if the requested name is null. |
UnaryServiceNameFactory |
getServiceNameFactory() |
static SingletonServiceNameFactory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SingletonServiceNameFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getServiceName, getServiceName
public static final SingletonServiceNameFactory SINGLETON_POLICY
public static SingletonServiceNameFactory[] values()
for (SingletonServiceNameFactory c : SingletonServiceNameFactory.values()) System.out.println(c);
public static SingletonServiceNameFactory 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 UnaryServiceNameFactory getServiceNameFactory()
getServiceNameFactory
in interface UnaryServiceNameFactoryProvider
public ServiceNameFactory getDefaultServiceNameFactory()
DefaultableUnaryServiceNameFactoryProvider
ServiceName
if the requested name is null.getDefaultServiceNameFactory
in interface DefaultableUnaryServiceNameFactoryProvider
Copyright © 2018 JBoss by Red Hat. All rights reserved.