Class DefaultSingletonService

  • All Implemented Interfaces:
    org.apache.webbeans.spi.SingletonService<WebBeansContext>

    public class DefaultSingletonService
    extends Object
    implements org.apache.webbeans.spi.SingletonService<WebBeansContext>
    • Constructor Detail

      • DefaultSingletonService

        public DefaultSingletonService()
    • Method Detail

      • get

        public WebBeansContext get​(Object key)
        Gets singleton instance for deployment.
        Specified by:
        get in interface org.apache.webbeans.spi.SingletonService<WebBeansContext>
        Returns:
        singleton instance for this deployment
      • clearInstances

        public void clearInstances​(ClassLoader classLoader)
        Clear all deployment instances when the application is undeployed.
        Parameters:
        classLoader - of the deployment
      • clear

        public void clear​(Object classLoader)
        Specified by:
        clear in interface org.apache.webbeans.spi.SingletonService<WebBeansContext>
      • exists

        public boolean exists​(Object key)