|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.universAAL.container.JUnit.JUnitContainer
public class JUnitContainer
Method Summary | |
---|---|
Object |
fetchSharedObject(ModuleContext requester,
Object[] fetchParams)
Returns an object previously shared by another module for usage within this container. |
Object[] |
fetchSharedObject(ModuleContext requester,
Object[] fetchParams,
SharedObjectListener listener)
Returns an object previously shared by another module for usage within this container. |
static JUnitContainer |
getInstance()
|
ModuleContext |
installModule(ModuleContext requester,
Object[] installParams)
Provides possibility for programmatically installing (downloaded) modules. |
Iterator |
logListeners()
Returns an Iterator object over all registered
instances of LogListener . |
ModuleContext |
registerModule(Object[] regParams)
Provides possibility for wrapping container-specific context for a module in terms of an instance of the universAAL ModuleContext . |
void |
removeSharedObjectListener(SharedObjectListener listener)
This method allows a SharedObjectListener instance to be removed from the list of listeners managed by this container |
void |
shareObject(ModuleContext requester,
Object objToShare,
Object[] shareParams)
Makes a given object accessible for the other modules hosted by this container. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static JUnitContainer getInstance()
public Object fetchSharedObject(ModuleContext requester, Object[] fetchParams)
fetchSharedObject
in interface Container
requester
- The module in the context of which the shared object is going
to be used.fetchParams
- Container-specific parameters for fetching shared objects.public Object[] fetchSharedObject(ModuleContext requester, Object[] fetchParams, SharedObjectListener listener)
fetchSharedObject
in interface Container
requester
- The module in the context of which the shared object is going
to be used.fetchParams
- Container-specific parameters for fetching shared objects.listener
- If not null, the listener will be notified asynchronously each
time a new matching object is shared within this container.public void removeSharedObjectListener(SharedObjectListener listener)
removeSharedObjectListener
in interface Container
listener
- the SharedObjectListener to be removedpublic ModuleContext installModule(ModuleContext requester, Object[] installParams)
installModule
in interface Container
requester
- The module requesting the installation; only an certain
modules should be allowed to install modules on the flyinstallParams
- Container-specific parameters for installing modules
public Iterator logListeners()
Iterator
object over all registered
instances of LogListener
.
logListeners
in interface Container
public ModuleContext registerModule(Object[] regParams)
ModuleContext
.
registerModule
in interface Container
regParams
- The container-specific parameters for identifying the module.
ModuleContext
.public void shareObject(ModuleContext requester, Object objToShare, Object[] shareParams)
shareObject
in interface Container
requester
- The module in the context of which the shared object is going
to be used.objToShare
- The actual object to be shared.shareParams
- Container-specific parameters for sharing a specific object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |