public class SerializationProviderFactory
extends java.lang.Object
A factory for creating SerializationProvider
instances.
| Modifier and Type | Class and Description |
|---|---|
private static class |
SerializationProviderFactory.JavaSerializationProvider
An implementation of
SerializationProvider which
uses standard Java serialization. |
| Modifier and Type | Field and Description |
|---|---|
private static SerializationProvider |
JAVA_PROVIDER
Our default
SerializationProvider. |
private static java.util.logging.Logger |
LOGGER |
private static java.lang.String |
SERIALIZATION_PROVIDER_PROPERTY
The system property that will be checked for alternate
SerializationProvider implementations. |
| Constructor and Description |
|---|
SerializationProviderFactory() |
| Modifier and Type | Method and Description |
|---|---|
static SerializationProvider |
createInstance(javax.faces.context.ExternalContext extContext)
Creates a new instance of the class specified by the
com.sun.faces.InjectionProvider system property. |
private static java.lang.String |
findProviderClass(javax.faces.context.ExternalContext extContext)
Tries to find a provider class in a web context parameter.
|
private static SerializationProvider |
getProviderInstance(java.lang.String className) |
private static boolean |
implementsSerializationProvider(java.lang.Class<?> clazz)
Determine if the specified class implements the
SerializationProvider interfaces. |
private static final SerializationProvider JAVA_PROVIDER
Our default SerializationProvider.
private static final java.lang.String SERIALIZATION_PROVIDER_PROPERTY
The system property that will be checked for alternate
SerializationProvider implementations.
private static final java.util.logging.Logger LOGGER
public static SerializationProvider createInstance(javax.faces.context.ExternalContext extContext)
Creates a new instance of the class specified by the
com.sun.faces.InjectionProvider system property.
If this propery is not defined, then a default, no-op,
InjectionProvider will be returned.
extContext - the ExternalContext for this applicationInjectionProvider
interfacesprivate static SerializationProvider getProviderInstance(java.lang.String className)
private static boolean implementsSerializationProvider(java.lang.Class<?> clazz)
Determine if the specified class implements the
SerializationProvider interfaces.
clazz - the class in questiontrue if clazz implements
the SerializationProvider interfaceprivate static java.lang.String findProviderClass(javax.faces.context.ExternalContext extContext)
extContext - The ExternalContext for this requestnull if not found.Copyright ? 2002-2013 Oracle America, Inc. All Rights Reserved.