public static enum StompInterceptor.PropertyClass extends Enum<StompInterceptor.PropertyClass>
This enum is dedicated to properties that represents a class to instantiate.
| Enum Constant and Description |
|---|
ADAPTER_CLASS
Setting that specifies the
AtmosphereStompAdapter implementation class used by the interceptor. |
STOMP_FORMAT_CLASS
Setting that specifies the
StompFormat implementation class used by the interceptor. |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
retrieve(Class<T> desiredType,
org.atmosphere.cpr.AtmosphereConfig config)
Checks in the
AtmosphereConfig if the propertyName is defined as an init-param and instantiate
the appropriate class. |
String |
toString() |
static StompInterceptor.PropertyClass |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StompInterceptor.PropertyClass[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StompInterceptor.PropertyClass ADAPTER_CLASS
AtmosphereStompAdapter implementation class used by the interceptor.public static final StompInterceptor.PropertyClass STOMP_FORMAT_CLASS
StompFormat implementation class used by the interceptor.public static StompInterceptor.PropertyClass[] values()
for (StompInterceptor.PropertyClass c : StompInterceptor.PropertyClass.values()) System.out.println(c);
public static StompInterceptor.PropertyClass 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 retrieve(Class<T> desiredType, org.atmosphere.cpr.AtmosphereConfig config)
Checks in the AtmosphereConfig if the propertyName is defined as an init-param and instantiate
the appropriate class.
If instantiation fails, the exception is logged and null is returned.
T - the generic for modular calldesiredType - the type to be returnedconfig - the configuration that provides parametersnull if an error occurspublic String toString()
toString in class Enum<StompInterceptor.PropertyClass>Copyright © 2014. All Rights Reserved.