com.tc.object.config
Class AbstractModuleSpec

java.lang.Object
  extended by com.tc.object.config.AbstractModuleSpec
All Implemented Interfaces:
ModuleSpec, OsgiServiceSpec

public abstract class AbstractModuleSpec
extends java.lang.Object
implements ModuleSpec

Provides default no-op method implementations for the ModuleSpec interface.


Field Summary
 
Fields inherited from interface com.tc.object.config.OsgiServiceSpec
HIGH_RANK, LOW_RANK, NORMAL_RANK
 
Constructor Summary
AbstractModuleSpec()
           
 
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.
 java.lang.String[] getTunneledMBeanDomains()
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractModuleSpec

public AbstractModuleSpec()
Method Detail

getChangeApplicatorSpec

public ChangeApplicatorSpec getChangeApplicatorSpec()
Description copied from interface: ModuleSpec
Get specification of all change applicators to apply

Specified by:
getChangeApplicatorSpec in interface ModuleSpec
Returns:
The spec

getPeerClass

public java.lang.Class getPeerClass(java.lang.Class clazz)
Description copied from interface: ModuleSpec
Get alternate peer class to use, generally if clazz is non-portable.

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

getTunneledMBeanDomains

public java.lang.String[] getTunneledMBeanDomains()

isPortableClass

public boolean isPortableClass(java.lang.Class clazz)
Description copied from interface: ModuleSpec
Check with module whether the specified class is portable.

Specified by:
isPortableClass in interface ModuleSpec
Parameters:
clazz - The class
Returns:
True if portable, false if unknown (should check with other modules)

isUseNonDefaultConstructor

public boolean isUseNonDefaultConstructor(java.lang.Class clazz)
Description copied from interface: ModuleSpec
Ask module whether this class uses a non-default constructor.

Specified by:
isUseNonDefaultConstructor in interface ModuleSpec
Parameters:
clazz - The class in question
Returns:
True if uses non-default constructor


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