public interface Container
Modifier and Type | Method and Description |
---|---|
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.
|
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 |
removeSharedObject(ModuleContext requester,
Object objToRemove,
Object[] shareParams)
Removes an object previously shared by a module for usage within this
container.
|
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.
|
Object fetchSharedObject(ModuleContext requester, Object[] fetchParams)
requester
- The module in the context of which the shared object is going
to be used.fetchParams
- Container-specific parameters for fetching shared objects.Object[] fetchSharedObject(ModuleContext requester, Object[] fetchParams, SharedObjectListener listener)
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.void removeSharedObjectListener(SharedObjectListener listener)
listener
- the SharedObjectListener to be removedModuleContext installModule(ModuleContext requester, Object[] installParams)
requester
- The module requesting the installation; only an certain
modules should be allowed to install modules on the flyinstallParams
- Container-specific parameters for installing modulesIterator logListeners()
Iterator
object over all registered
instances of LogListener
.ModuleContext registerModule(Object[] regParams)
ModuleContext
.regParams
- The container-specific parameters for identifying the module.ModuleContext
.void shareObject(ModuleContext requester, Object objToShare, Object[] shareParams)
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.void removeSharedObject(ModuleContext requester, Object objToRemove, Object[] shareParams)
requester
- The module in the context of which the shared object was
shared.fetchParams
- Container-specific parameters for removing shared objects. The
params must be the same that were used to share the object.Copyright © 2018 universAAL Consortium. All rights reserved.