Class TCCLSingletonProvider


  • public class TCCLSingletonProvider
    extends SingletonProvider
    Singleton provider that uses the Thread Context ClassLoader to differentiate between applications
    Author:
    [email protected], Pete Muir
    • Constructor Detail

      • TCCLSingletonProvider

        public TCCLSingletonProvider()
    • Method Detail

      • create

        public <T> Singleton<T> create​(Class<? extends T> type)
        Description copied from class: SingletonProvider
        Create a new singleton
        Specified by:
        create in class SingletonProvider
        Type Parameters:
        T - type of Java object stored in the singleton
        Parameters:
        type - represents the type of Java object stored in the singleton
        Returns:
        a singelton