copyModuleMetaDataSlot
public static boolean copyModuleMetaDataSlot(MetaDataEvent<com.ibm.ws.runtime.metadata.ModuleMetaData> event,
com.ibm.ws.runtime.metadata.MetaDataSlot slot)
Copy slot data from a primary module metadata to a nested module
metadata. This is necessary for containers that want to share
module-level data for all components in a module, because nested modules
have their own distinct metadata.
- Parameters:
event
- event from ModuleMetaDataListener.moduleMetaDataCreated(com.ibm.ws.container.service.metadata.MetaDataEvent<com.ibm.ws.runtime.metadata.ModuleMetaData>)
slot
- the slot to copy
- Returns:
- true if the data was copied, or false if this is the primary metadata
and the caller must set the slot data
- Throws:
java.lang.IllegalStateException
- if the primary metadata slot was not set