A factory for creating SerializationProvider instances.
| Modifier and Type | Class and Description |
|---|---|
| private static class | SerializationProviderFactory.
An implementation of |
| Modifier and Type | Field and Description |
|---|---|
| private static final SerializationProvider | JAVA_PROVIDER
Our default |
| private static final Logger | |
| private static final String | SERIALIZATION_PROVIDER_PROPERTY
The system property that will be checked for alternate |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static SerializationProvider | Returns: an implementation of theInjectionProvider interfacesthe ExternalContext for this application extContext)
Creates a new instance of the class specified by the |
| private static String | Returns: The provider class name specified in the container configuration, ornull if not found.The ExternalContext for this request extContext)Tries to find a provider class in a web context parameter. |
| private static SerializationProvider | |
| private static boolean | Returns: true if clazz implements the SerializationProvider interfacethe class in question clazz)
Determine if the specified class implements the |
| JAVA_PROVIDER | back to summary |
|---|---|
| private static final SerializationProvider JAVA_PROVIDER
Our default | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| SERIALIZATION_PROVIDER_PROPERTY | back to summary |
|---|---|
| private static final String SERIALIZATION_PROVIDER_PROPERTY
The system property that will be checked for alternate | |
| SerializationProviderFactory | back to summary |
|---|---|
| public SerializationProviderFactory() | |
| createInstance | back to summary |
|---|---|
| public static SerializationProvider createInstance(ExternalContext extContext)
Creates a new instance of the class specified by the
| |
| findProviderClass | back to summary |
|---|---|
| private static String findProviderClass(ExternalContext extContext) Tries to find a provider class in a web context parameter. If not present it tries to find it as a System property. If still not found returns null.
| |
| getProviderInstance | back to summary |
|---|---|
| private static SerializationProvider getProviderInstance(String className) | |
| implementsSerializationProvider | back to summary |
|---|---|
| private static boolean implementsSerializationProvider(Class<?> clazz)
Determine if the specified class implements the
| |
An implementation of SerializationProvider which uses standard Java serialization.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public ObjectInputStream | Returns: anObjectInputStreamthe source stream from which to read the Object(s) from source)Implements com.
Creates a new |
| public ObjectOutputStream | Returns: anObjectOutputStreamthe destination of the serialized Object(s) destination)Implements com.
Creates a new |
| JavaSerializationProvider | back to summary |
|---|---|
| private JavaSerializationProvider() | |
| createObjectInputStream | back to summary |
|---|---|
| public ObjectInputStream createObjectInputStream(InputStream source) throws IOException Implements com.
Creates a new
| |
| createObjectOutputStream | back to summary |
|---|---|
| public ObjectOutputStream createObjectOutputStream(OutputStream destination) throws IOException Implements com.
Creates a new
| |