Class JustInTimeObjectCreator<T>

  • All Implemented Interfaces:
    java.lang.Runnable, ObjectCreator<T>, EagerLoadServiceProxy

    public class JustInTimeObjectCreator<T>
    extends java.lang.Object
    implements ObjectCreator<T>, EagerLoadServiceProxy, java.lang.Runnable
    Invoked from a fabricated service delegate to get or realize (instantiate and configure) the service implementation. This includes synchronization logic, to prevent multiple threads from attempting to realize the same service at the same time (a service should be realized only once). The additional interfaces implemented by this class support eager loading of services (at application startup), and orderly shutdown of proxies.