public class ServiceHolder<T> extends Object
Service objects that are obtained in this way, e.g. through a ServiceTracker
on a
WhiteboardServiceRegistry
must be invoked with the context classloader set to the getClassLoader()
.
Modifier and Type | Method and Description |
---|---|
ClassLoader |
getClassLoader() |
T |
getServiceObject() |
public ClassLoader getClassLoader()
Thread.currentThread().getContextClassLoader()
at the creation of this service holder.public T getServiceObject()
Copyright © 2012–2019 Hippo B.V. (http://www.onehippo.com). All rights reserved.