com.sun.xml.bind.api
public abstract class BridgeContext extends Object
Deprecated: The caller no longer needs to use this, as Bridge has methods that can work without BridgeContext.
Holds thread specific state information for Bridges, to make Bridge thread-safe.This object cannot be used concurrently; two threads cannot use the same object with Bridges 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
See Also: Bridge
Constructor Summary | |
---|---|
protected | BridgeContext() |
Method Summary | |
---|---|
abstract AttachmentMarshaller | getAttachmentMarshaller()
Gets the last AttachmentMarshaller set through
AttachmentMarshaller.
|
abstract AttachmentUnmarshaller | getAttachmentUnmarshaller()
Gets the last AttachmentUnmarshaller set through
AttachmentUnmarshaller.
|
abstract void | setAttachmentMarshaller(AttachmentMarshaller m)
Sets the AttachmentMarshaller.
|
abstract void | setAttachmentUnmarshaller(AttachmentUnmarshaller m)
Sets the AttachmentUnmarshaller.
|
abstract void | setErrorHandler(ValidationEventHandler handler)
Registers the error handler that receives unmarshalling/marshalling errors.
|
Since: 2.0 EA2
Since: 2.0 EA2
Since: 2.0 EA1
Since: 2.0 EA1
Parameters: handler can be null, in which case all errors will be considered fatal.
Since: 2.0 EA1