IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.plugins.io.dataobject
Interface DataObjectContextAware

All Known Subinterfaces:
SerializedEntry, SerializedKey, SerializedValue

public interface DataObjectContextAware

This interface is implemented by DataObjectEntry implementations or sub-interfaces to identify that they are associated with a DataObjectContext.

Since:
7.1.1
See Also:
SerializerAccessor.getDefaultContext()

Method Summary
 void applyContext(DataObjectContext ctx)
          Apply a non-null DataObjectContext to this object.
 DataObjectContext getContext()
          Retrieves the current DataObjectContext associated with this object, or null if not associated with a context.
 

Method Detail

getContext

DataObjectContext getContext()
Retrieves the current DataObjectContext associated with this object, or null if not associated with a context.

Returns:
the DataObjectContext or null.

applyContext

void applyContext(DataObjectContext ctx)
Apply a non-null DataObjectContext to this object.

Parameters:
ctx - the DataObjectContext to associate with the object.
Throws:
IllegalArgumentException - if the context is incompatible or is already set.

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.