Class BridgeContext

java.lang.Object
com.sun.xml.bind.api.BridgeContext
Direct Known Subclasses:
BridgeContextImpl

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
Author:
Kohsuke Kawaguchi
See Also:
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract javax.xml.bind.attachment.AttachmentMarshaller
    Deprecated.
    Gets the last AttachmentMarshaller set through AttachmentMarshaller.
    abstract javax.xml.bind.attachment.AttachmentUnmarshaller
    Deprecated.
    Gets the last AttachmentUnmarshaller set through AttachmentUnmarshaller.
    abstract void
    setAttachmentMarshaller(javax.xml.bind.attachment.AttachmentMarshaller m)
    Deprecated.
    Sets the AttachmentMarshaller.
    abstract void
    setAttachmentUnmarshaller(javax.xml.bind.attachment.AttachmentUnmarshaller m)
    Deprecated.
    Sets the AttachmentUnmarshaller.
    abstract void
    setErrorHandler(javax.xml.bind.ValidationEventHandler handler)
    Deprecated.
    Registers the error handler that receives unmarshalling/marshalling errors.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BridgeContext

      protected BridgeContext()
      Deprecated.
  • Method Details

    • setErrorHandler

      public abstract void setErrorHandler(javax.xml.bind.ValidationEventHandler handler)
      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

      public abstract void setAttachmentMarshaller(javax.xml.bind.attachment.AttachmentMarshaller m)
      Deprecated.
      Sets the AttachmentMarshaller.
      Since:
      2.0 EA1
    • setAttachmentUnmarshaller

      public abstract void setAttachmentUnmarshaller(javax.xml.bind.attachment.AttachmentUnmarshaller m)
      Deprecated.
      Sets the AttachmentUnmarshaller.
      Since:
      2.0 EA1
    • getAttachmentMarshaller

      public abstract javax.xml.bind.attachment.AttachmentMarshaller getAttachmentMarshaller()
      Deprecated.
      Gets the last AttachmentMarshaller set through AttachmentMarshaller.
      Since:
      2.0 EA2
    • getAttachmentUnmarshaller

      public abstract javax.xml.bind.attachment.AttachmentUnmarshaller getAttachmentUnmarshaller()
      Deprecated.
      Gets the last AttachmentUnmarshaller set through AttachmentUnmarshaller.
      Since:
      2.0 EA2