Class

eu.cdevreeze.yaidom.core.QNameProvider

ThreadLocalQNameProvider

Related Doc: package QNameProvider

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

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

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

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

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

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

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

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

    Permalink

    Gets an QName with the given prefix and local part

    Gets an QName with the given prefix and local part

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

    Permalink

    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
  12. def getUnprefixedQName(localPart: String): QName

    Permalink

    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
  13. def hashCode(): Int

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

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

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

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

    Permalink

    Gets an QName parsed from the given string representation

    Gets an QName parsed from the given string representation

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

    Permalink
  20. def qnameProviderOfCurrentThread: QNameProvider

    Permalink

    Returns the QNameProvider instance attached to the current thread.

  21. def setQNameProviderOfCurrentThread(qnameProvider: QNameProvider): Unit

    Permalink

    Updates the QNameProvider instance attached to the current thread.

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

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from QNameProvider

Inherited from AnyRef

Inherited from Any

Ungrouped