Package com.sun.xml.bind.api
Class BridgeContext
java.lang.Object
com.sun.xml.bind.api.BridgeContext
- Direct Known Subclasses:
BridgeContextImpl
Deprecated.
Holds thread specific state information for
Bridge
s,
to make Bridge
thread-safe.
This object cannot be used concurrently; two threads cannot
use the same object with Bridge
s at the same time, nor
a thread can use a BridgeContext
with one Bridge
while
the same context is in use by another Bridge
.
BridgeContext
is relatively a heavy-weight object, and
therefore it is expected to be cached by the JAX-RPC RI.
Subject to change without notice.
- Since:
- 2.0 EA1
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract AttachmentMarshaller
Deprecated.Gets the lastAttachmentMarshaller
set throughAttachmentMarshaller
.abstract AttachmentUnmarshaller
Deprecated.Gets the lastAttachmentUnmarshaller
set throughAttachmentUnmarshaller
.abstract void
Deprecated.Sets theAttachmentMarshaller
.abstract void
Deprecated.Sets theAttachmentUnmarshaller
.abstract void
setErrorHandler
(ValidationEventHandler handler) Deprecated.Registers the error handler that receives unmarshalling/marshalling errors.
-
Constructor Details
-
BridgeContext
protected BridgeContext()Deprecated.
-
-
Method Details
-
setErrorHandler
Deprecated.Registers the error handler that receives unmarshalling/marshalling errors.- Parameters:
handler
- can be null, in which case all errors will be considered fatal.- Since:
- 2.0 EA1
-
setAttachmentMarshaller
Deprecated.Sets theAttachmentMarshaller
.- Since:
- 2.0 EA1
-
setAttachmentUnmarshaller
Deprecated.Sets theAttachmentUnmarshaller
.- Since:
- 2.0 EA1
-
getAttachmentMarshaller
Deprecated.Gets the lastAttachmentMarshaller
set throughAttachmentMarshaller
.- Since:
- 2.0 EA2
-
getAttachmentUnmarshaller
Deprecated.Gets the lastAttachmentUnmarshaller
set throughAttachmentUnmarshaller
.- Since:
- 2.0 EA2
-
Bridge
has methods that can work withoutBridgeContext
.