Class ProxyModule

  • All Implemented Interfaces:
    com.sun.enterprise.module.HK2Module

    public class ProxyModule
    extends Object
    implements com.sun.enterprise.module.HK2Module
    Since:
    Nov 19, 2008
    Author:
    dochez
    • Constructor Detail

      • ProxyModule

        public ProxyModule​(com.sun.enterprise.module.ModulesRegistry registry,
                           com.sun.enterprise.module.ModuleDefinition moduleDef,
                           ClassLoader cl)
    • Method Detail

      • getModuleDefinition

        public com.sun.enterprise.module.ModuleDefinition getModuleDefinition()
        Specified by:
        getModuleDefinition in interface com.sun.enterprise.module.HK2Module
      • getName

        public String getName()
        Specified by:
        getName in interface com.sun.enterprise.module.HK2Module
      • getRegistry

        public com.sun.enterprise.module.ModulesRegistry getRegistry()
        Specified by:
        getRegistry in interface com.sun.enterprise.module.HK2Module
      • getState

        public com.sun.enterprise.module.ModuleState getState()
        Specified by:
        getState in interface com.sun.enterprise.module.HK2Module
      • resolve

        public void resolve()
                     throws com.sun.enterprise.module.ResolveError
        Specified by:
        resolve in interface com.sun.enterprise.module.HK2Module
        Throws:
        com.sun.enterprise.module.ResolveError
      • start

        public void start()
                   throws com.sun.enterprise.module.ResolveError
        Specified by:
        start in interface com.sun.enterprise.module.HK2Module
        Throws:
        com.sun.enterprise.module.ResolveError
      • stop

        public boolean stop()
        Specified by:
        stop in interface com.sun.enterprise.module.HK2Module
      • detach

        public void detach()
        Specified by:
        detach in interface com.sun.enterprise.module.HK2Module
      • refresh

        public void refresh()
        Specified by:
        refresh in interface com.sun.enterprise.module.HK2Module
      • getMetadata

        public com.sun.enterprise.module.ModuleMetadata getMetadata()
        Specified by:
        getMetadata in interface com.sun.enterprise.module.HK2Module
      • addListener

        public void addListener​(com.sun.enterprise.module.ModuleChangeListener listener)
        Specified by:
        addListener in interface com.sun.enterprise.module.HK2Module
      • removeListener

        public void removeListener​(com.sun.enterprise.module.ModuleChangeListener listener)
        Specified by:
        removeListener in interface com.sun.enterprise.module.HK2Module
      • getClassLoader

        public ClassLoader getClassLoader()
        Specified by:
        getClassLoader in interface com.sun.enterprise.module.HK2Module
      • getImports

        public List<com.sun.enterprise.module.HK2Module> getImports()
        Specified by:
        getImports in interface com.sun.enterprise.module.HK2Module
      • addImport

        public void addImport​(com.sun.enterprise.module.HK2Module module)
        Specified by:
        addImport in interface com.sun.enterprise.module.HK2Module
      • addImport

        public com.sun.enterprise.module.HK2Module addImport​(com.sun.enterprise.module.ModuleDependency dependency)
        Specified by:
        addImport in interface com.sun.enterprise.module.HK2Module
      • isShared

        public boolean isShared()
        Specified by:
        isShared in interface com.sun.enterprise.module.HK2Module
      • isSticky

        public boolean isSticky()
        Specified by:
        isSticky in interface com.sun.enterprise.module.HK2Module
      • setSticky

        public void setSticky​(boolean sticky)
        Specified by:
        setSticky in interface com.sun.enterprise.module.HK2Module
      • getProvidersClass

        public <T> Iterable<Class<? extends T>> getProvidersClass​(Class<T> serviceClass)
        Specified by:
        getProvidersClass in interface com.sun.enterprise.module.HK2Module
      • getProvidersClass

        public Iterable<Class> getProvidersClass​(String name)
        Specified by:
        getProvidersClass in interface com.sun.enterprise.module.HK2Module
      • hasProvider

        public boolean hasProvider​(Class serviceClass)
        Specified by:
        hasProvider in interface com.sun.enterprise.module.HK2Module
      • dumpState

        public void dumpState​(PrintStream writer)
        Specified by:
        dumpState in interface com.sun.enterprise.module.HK2Module
      • uninstall

        public void uninstall()
        Specified by:
        uninstall in interface com.sun.enterprise.module.HK2Module