org.terracotta.modules.configuration
Class TerracottaConfiguratorModule
java.lang.Object
org.terracotta.modules.configuration.TerracottaConfiguratorModule
public abstract class TerracottaConfiguratorModule
- extends java.lang.Object
Method Summary |
protected void |
addClassReplacement(Bundle bundle,
java.lang.String originalClassName,
java.lang.String replacementClassName)
|
protected void |
addClassReplacement(Bundle bundle,
java.lang.String originalClassName,
java.lang.String replacementClassName,
ClassReplacementTest test)
|
protected void |
addExportedBundleClass(Bundle bundle,
java.lang.String classname)
|
protected void |
addExportedBundleClass(Bundle bundle,
java.lang.String classname,
boolean targetSystemLoaderOnly)
Export the given class that normally resides in a config bundle (aka. |
protected void |
addExportedTcJarClass(java.lang.String classname)
Export the given class that normally resides in tc.jar to all classloaders that might try to load it. |
protected void |
addInstrumentation(BundleContext context)
|
protected void |
addLock(java.lang.String expr,
LockDefinition ld)
|
protected ServiceReference |
getConfigHelperReference(BundleContext context)
|
protected Bundle |
getExportedBundle(BundleContext context,
java.lang.String targetBundleName)
|
protected TCLogger |
getLogger()
|
protected TransparencyClassSpec |
getOrCreateSpec(java.lang.String expr)
|
protected TransparencyClassSpec |
getOrCreateSpec(java.lang.String expr,
boolean markAsPreInstrumented)
|
protected TCProperties |
getTcProps()
|
protected Bundle |
getThisBundle()
|
protected void |
registerMBeanSpec(BundleContext context)
|
protected void |
registerModuleSpec(BundleContext context)
|
protected void |
registerSRASpec(BundleContext context)
|
void |
start(BundleContext context)
|
void |
stop(BundleContext context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
configHelper
protected StandardDSOClientConfigHelper configHelper
TerracottaConfiguratorModule
public TerracottaConfiguratorModule()
getConfigHelperReference
protected ServiceReference getConfigHelperReference(BundleContext context)
throws java.lang.Exception
- Throws:
java.lang.Exception
start
public final void start(BundleContext context)
throws java.lang.Exception
- Throws:
java.lang.Exception
getThisBundle
protected Bundle getThisBundle()
getTcProps
protected TCProperties getTcProps()
getLogger
protected TCLogger getLogger()
stop
public void stop(BundleContext context)
throws java.lang.Exception
- Throws:
java.lang.Exception
addInstrumentation
protected void addInstrumentation(BundleContext context)
registerModuleSpec
protected void registerModuleSpec(BundleContext context)
registerMBeanSpec
protected void registerMBeanSpec(BundleContext context)
registerSRASpec
protected void registerSRASpec(BundleContext context)
addClassReplacement
protected final void addClassReplacement(Bundle bundle,
java.lang.String originalClassName,
java.lang.String replacementClassName)
addClassReplacement
protected final void addClassReplacement(Bundle bundle,
java.lang.String originalClassName,
java.lang.String replacementClassName,
ClassReplacementTest test)
addExportedBundleClass
protected final void addExportedBundleClass(Bundle bundle,
java.lang.String classname,
boolean targetSystemLoaderOnly)
- Export the given class that normally resides in a config bundle (aka. integration module) to all classloaders that
might try to load it. This is sort of like creating a jar containing the one given class and appending into the
lookup path of every classloader NOTE: The export will only work for class loads that pass through
java.lang.ClassLoader.loadClassInternal(). Specifically if the loadClass() method is directly being invoked from
code someplace, the class export will not function. Code that does a "new ", or that uses
java.lang.Class.forName(..) will work though
- Parameters:
classname
- the bundle class name to exporttargetSystemLoaderOnly
- True if only the system classloader should have visibility to this exported class
addExportedBundleClass
protected final void addExportedBundleClass(Bundle bundle,
java.lang.String classname)
addExportedTcJarClass
protected final void addExportedTcJarClass(java.lang.String classname)
- Export the given class that normally resides in tc.jar to all classloaders that might try to load it. This is sort
of like creating a jar containing the one given class and appending into the lookup path of every classloader NOTE:
The export will only work for class loads that pass through java.lang.ClassLoader.loadClassInternal(). Specifically
if the loadClass() method is directly being invoked from code someplace, the class export will not function. Code
that does a "new ", or that uses java.lang.Class.forName(..) will work though
- Parameters:
classname
- the tc.jar class name to export
getOrCreateSpec
protected TransparencyClassSpec getOrCreateSpec(java.lang.String expr,
boolean markAsPreInstrumented)
getOrCreateSpec
protected TransparencyClassSpec getOrCreateSpec(java.lang.String expr)
addLock
protected void addLock(java.lang.String expr,
LockDefinition ld)
getExportedBundle
protected Bundle getExportedBundle(BundleContext context,
java.lang.String targetBundleName)
Copyright © 2010 Terracotta, Inc.. All Rights Reserved.