com.tc.object.config
Interface ModuleSpec

All Superinterfaces:
OsgiServiceSpec
All Known Implementing Classes:
AbstractModuleSpec

public interface ModuleSpec
extends OsgiServiceSpec

This interface defines the contract between StandardDsoClientConfigHelper and a module so that the configHelper can get information such as custom applicator of a class from a module.


Field Summary
 
Fields inherited from interface com.tc.object.config.OsgiServiceSpec
HIGH_RANK, LOW_RANK, NORMAL_RANK
 
Method Summary
 ChangeApplicatorSpec getChangeApplicatorSpec()
          Get specification of all change applicators to apply
 java.lang.Class getPeerClass(java.lang.Class clazz)
          Get alternate peer class to use, generally if clazz is non-portable.
 boolean isPortableClass(java.lang.Class clazz)
          Check with module whether the specified class is portable.
 boolean isUseNonDefaultConstructor(java.lang.Class clazz)
          Ask module whether this class uses a non-default constructor.
 

Method Detail

getChangeApplicatorSpec

ChangeApplicatorSpec getChangeApplicatorSpec()
Get specification of all change applicators to apply

Returns:
The spec

isUseNonDefaultConstructor

boolean isUseNonDefaultConstructor(java.lang.Class clazz)
Ask module whether this class uses a non-default constructor.

Parameters:
clazz - The class in question
Returns:
True if uses non-default constructor

getPeerClass

java.lang.Class getPeerClass(java.lang.Class clazz)
Get alternate peer class to use, generally if clazz is non-portable.

Parameters:
clazz - The class to check
Returns:
An alternate peer class or null in case this alternate peer class is provided by this module

isPortableClass

boolean isPortableClass(java.lang.Class clazz)
Check with module whether the specified class is portable.

Parameters:
clazz - The class
Returns:
True if portable, false if unknown (should check with other modules)


Copyright © 2010 Terracotta, Inc.. All Rights Reserved.