A note about threadsafety: The assumption is that a single thread will access the RegistryBuilder
at one time (typically, a startup class within some form of server or application). Code here and
in many of the related classes is divided into construction-time logic and runtime logic. Runtime
logic is synchronized and threadsafe. Construction-time logic is not threadsafe. Once the
registry is fully constructed, it is not allowed to invoke those methods (though, at this time,
no checks occur).
A note about threadsafety: The assumption is that a single thread will access the RegistryBuilder at one time (typically, a startup class within some form of server or application). Code here and in many of the related classes is divided into construction-time logic and runtime logic. Runtime logic is synchronized and threadsafe. Construction-time logic is not threadsafe. Once the registry is fully constructed, it is not allowed to invoke those methods (though, at this time, no checks occur).
Runtime methods, such as getService(String, Class) are fully threadsafe.