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.
- Alphabetic
- By Inheritance
- ThreadLocalQNameProvider
- QNameProvider
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ThreadLocalQNameProvider(qnameProviderCreator: () ⇒ QNameProvider)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
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
- ThreadLocalQNameProvider → QNameProvider
-
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
- ThreadLocalQNameProvider → QNameProvider
-
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
- ThreadLocalQNameProvider → QNameProvider
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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
- ThreadLocalQNameProvider → QNameProvider
- val qnameProviderCreator: () ⇒ QNameProvider
-
def
qnameProviderOfCurrentThread: QNameProvider
Returns the QNameProvider instance attached to the current thread.
-
def
setQNameProviderOfCurrentThread(qnameProvider: QNameProvider): Unit
Updates the QNameProvider instance attached to the current thread.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )