Class ServiceHolder<T>

java.lang.Object
org.onehippo.cms7.services.ServiceHolder<T>
Direct Known Subclasses:
ProxiedServiceHolder

public class ServiceHolder<T> extends Object
The ServiceHolder holds a service object with its context classloader at the time of creating the holder.

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().

  • Method Details