com.ibm.ws.container.service.metadata
Class MetaDataUtils

java.lang.Object
  extended by com.ibm.ws.container.service.metadata.MetaDataUtils

public class MetaDataUtils
extends java.lang.Object


Constructor Summary
MetaDataUtils()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaDataUtils

public MetaDataUtils()
Method Detail

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)
slot - the slot to copy
Returns:
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