eu.cdevreeze.yaidom.core.QNameProvider

ThreadLocalQNameProvider

final class ThreadLocalQNameProvider extends QNameProvider

Thread-local QNameProvider. This class exists because there is precisely one globally used QNameProvider, and by using this thread-local QNameProvider it is possible to make the global QNameProvider configurable per thread again. Also note that the QNameProviders bound to a thread are local to that thread, so they do not suffer from any thread-safety issues (unless a non-thread-safe QName provider instance is shared).

Note that each ThreadLocalQNameProvider instance (!) has its own thread-local QName provider. Typically it makes no sense to have more than one ThreadLocalQNameProvider instance in one application. In a Spring application, for example, a single instance of a ThreadLocalQNameProvider can be configured.

Linear Supertypes
QNameProvider, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ThreadLocalQNameProvider
  2. QNameProvider
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ThreadLocalQNameProvider(qnameProviderCreator: () ⇒ QNameProvider)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  12. def getQName(prefix: String, localPart: String): QName

    Gets an QName with the given prefix and local part

    Gets an QName with the given prefix and local part

    Definition Classes
    ThreadLocalQNameProviderQNameProvider
  13. def getQName(prefixOption: Option[String], localPart: String): QName

    Gets an QName with the given optional prefix and local part

    Gets an QName with the given optional prefix and local part

    Definition Classes
    ThreadLocalQNameProviderQNameProvider
  14. def getUnprefixedQName(localPart: String): QName

    Gets an QName with the given local part, and without any prefix

    Gets an QName with the given local part, and without any prefix

    Definition Classes
    ThreadLocalQNameProviderQNameProvider
  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  20. def parseQName(s: String): QName

    Gets an QName parsed from the given string representation

    Gets an QName parsed from the given string representation

    Definition Classes
    ThreadLocalQNameProviderQNameProvider
  21. val qnameProviderCreator: () ⇒ QNameProvider

  22. def qnameProviderOfCurrentThread: QNameProvider

    Returns the QNameProvider instance attached to the current thread.

  23. def setQNameProviderOfCurrentThread(qnameProvider: QNameProvider): Unit

    Updates the QNameProvider instance attached to the current thread.

  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from QNameProvider

Inherited from AnyRef

Inherited from Any

Ungrouped