public class SerializationProviderFactory extends 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 Logger |
LOGGER |
private static 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 String |
findProviderClass(javax.faces.context.ExternalContext extContext)
Tries to find a provider class in a web context parameter.
|
private static SerializationProvider |
getProviderInstance(String className) |
private static boolean |
implementsSerializationProvider(Class<?> clazz)
Determine if the specified class implements the
SerializationProvider interfaces. |
private static final SerializationProvider JAVA_PROVIDER
Our default SerializationProvider
.
private static final String SERIALIZATION_PROVIDER_PROPERTY
The system property that will be checked for alternate
SerializationProvider
implementations.
private static final 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(String className)
private static boolean implementsSerializationProvider(Class<?> clazz)
Determine if the specified class implements the
SerializationProvider
interfaces.
clazz
- the class in questiontrue
if clazz
implements
the SerializationProvider
interfaceprivate static String findProviderClass(javax.faces.context.ExternalContext extContext)
extContext
- The ExternalContext for this requestnull
if not found.Copyright ? 2002-2010 Oracle America, Inc. All Rights Reserved.