Package org.glassfish.tests.utils
Class ProxyModule
- java.lang.Object
-
- org.glassfish.tests.utils.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 Summary
Constructors Constructor Description ProxyModule(com.sun.enterprise.module.ModulesRegistry registry, com.sun.enterprise.module.ModuleDefinition moduleDef, ClassLoader cl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addImport(com.sun.enterprise.module.HK2Module module)
com.sun.enterprise.module.HK2Module
addImport(com.sun.enterprise.module.ModuleDependency dependency)
void
addListener(com.sun.enterprise.module.ModuleChangeListener listener)
void
detach()
void
dumpState(PrintStream writer)
ClassLoader
getClassLoader()
List<com.sun.enterprise.module.HK2Module>
getImports()
com.sun.enterprise.module.ModuleMetadata
getMetadata()
com.sun.enterprise.module.ModuleDefinition
getModuleDefinition()
String
getName()
<T> Iterable<Class<? extends T>>
getProvidersClass(Class<T> serviceClass)
Iterable<Class>
getProvidersClass(String name)
com.sun.enterprise.module.ModulesRegistry
getRegistry()
com.sun.enterprise.module.ModuleState
getState()
boolean
hasProvider(Class serviceClass)
boolean
isShared()
boolean
isSticky()
void
refresh()
void
removeListener(com.sun.enterprise.module.ModuleChangeListener listener)
void
resolve()
void
setSticky(boolean sticky)
void
start()
boolean
stop()
void
uninstall()
-
-
-
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 interfacecom.sun.enterprise.module.HK2Module
-
getName
public String getName()
- Specified by:
getName
in interfacecom.sun.enterprise.module.HK2Module
-
getRegistry
public com.sun.enterprise.module.ModulesRegistry getRegistry()
- Specified by:
getRegistry
in interfacecom.sun.enterprise.module.HK2Module
-
getState
public com.sun.enterprise.module.ModuleState getState()
- Specified by:
getState
in interfacecom.sun.enterprise.module.HK2Module
-
resolve
public void resolve() throws com.sun.enterprise.module.ResolveError
- Specified by:
resolve
in interfacecom.sun.enterprise.module.HK2Module
- Throws:
com.sun.enterprise.module.ResolveError
-
start
public void start() throws com.sun.enterprise.module.ResolveError
- Specified by:
start
in interfacecom.sun.enterprise.module.HK2Module
- Throws:
com.sun.enterprise.module.ResolveError
-
stop
public boolean stop()
- Specified by:
stop
in interfacecom.sun.enterprise.module.HK2Module
-
detach
public void detach()
- Specified by:
detach
in interfacecom.sun.enterprise.module.HK2Module
-
refresh
public void refresh()
- Specified by:
refresh
in interfacecom.sun.enterprise.module.HK2Module
-
getMetadata
public com.sun.enterprise.module.ModuleMetadata getMetadata()
- Specified by:
getMetadata
in interfacecom.sun.enterprise.module.HK2Module
-
addListener
public void addListener(com.sun.enterprise.module.ModuleChangeListener listener)
- Specified by:
addListener
in interfacecom.sun.enterprise.module.HK2Module
-
removeListener
public void removeListener(com.sun.enterprise.module.ModuleChangeListener listener)
- Specified by:
removeListener
in interfacecom.sun.enterprise.module.HK2Module
-
getClassLoader
public ClassLoader getClassLoader()
- Specified by:
getClassLoader
in interfacecom.sun.enterprise.module.HK2Module
-
getImports
public List<com.sun.enterprise.module.HK2Module> getImports()
- Specified by:
getImports
in interfacecom.sun.enterprise.module.HK2Module
-
addImport
public void addImport(com.sun.enterprise.module.HK2Module module)
- Specified by:
addImport
in interfacecom.sun.enterprise.module.HK2Module
-
addImport
public com.sun.enterprise.module.HK2Module addImport(com.sun.enterprise.module.ModuleDependency dependency)
- Specified by:
addImport
in interfacecom.sun.enterprise.module.HK2Module
-
isShared
public boolean isShared()
- Specified by:
isShared
in interfacecom.sun.enterprise.module.HK2Module
-
isSticky
public boolean isSticky()
- Specified by:
isSticky
in interfacecom.sun.enterprise.module.HK2Module
-
setSticky
public void setSticky(boolean sticky)
- Specified by:
setSticky
in interfacecom.sun.enterprise.module.HK2Module
-
getProvidersClass
public <T> Iterable<Class<? extends T>> getProvidersClass(Class<T> serviceClass)
- Specified by:
getProvidersClass
in interfacecom.sun.enterprise.module.HK2Module
-
getProvidersClass
public Iterable<Class> getProvidersClass(String name)
- Specified by:
getProvidersClass
in interfacecom.sun.enterprise.module.HK2Module
-
hasProvider
public boolean hasProvider(Class serviceClass)
- Specified by:
hasProvider
in interfacecom.sun.enterprise.module.HK2Module
-
dumpState
public void dumpState(PrintStream writer)
- Specified by:
dumpState
in interfacecom.sun.enterprise.module.HK2Module
-
uninstall
public void uninstall()
- Specified by:
uninstall
in interfacecom.sun.enterprise.module.HK2Module
-
-