com.softwareag.cis.plugin.extpt.util
Class AbstractExtensionImplementation

java.lang.Object
  extended by com.softwareag.cis.plugin.extpt.util.AbstractExtensionImplementation
All Implemented Interfaces:
ExtensionImplementation
Direct Known Subclasses:
AbstractPerspective, AbstractPlugInInfo, AbstractTopic, CommonI18NHandler

public abstract class AbstractExtensionImplementation
extends java.lang.Object
implements ExtensionImplementation


Field Summary
static java.lang.String rcs_id
           
 
Constructor Summary
AbstractExtensionImplementation()
           
 
Method Summary
 Extension getExtension()
          Obtain the extension which caused instantiation of this ExtensionImplementation
 PlugIn getPlugIn()
          Get plug-in this extension implementation belongs to
 void popContextClassLoader(java.lang.ClassLoader saveClassLoader)
          Restore thread context classloader
 java.lang.ClassLoader pushContextClassLoader()
          Set thread context classloader to classloader of plug-in this extension implementation belongs to
 void setExtension(Extension ext)
          Make extension configuration known to implementing extension.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rcs_id

public static final java.lang.String rcs_id
See Also:
Constant Field Values
Constructor Detail

AbstractExtensionImplementation

public AbstractExtensionImplementation()
Method Detail

setExtension

public final void setExtension(Extension ext)
Description copied from interface: ExtensionImplementation
Make extension configuration known to implementing extension. This allows extensions to be used multiple times with different parameters.

Specified by:
setExtension in interface ExtensionImplementation
Parameters:
ext - the extension configuration
See Also:
ExtensionImplementation.setExtension(com.softwareag.cis.plugin.registry.Extension)

getExtension

public Extension getExtension()
Description copied from interface: ExtensionImplementation
Obtain the extension which caused instantiation of this ExtensionImplementation

Specified by:
getExtension in interface ExtensionImplementation
Returns:
the Extension object
See Also:
ExtensionImplementation.getExtension()

getPlugIn

public PlugIn getPlugIn()
Get plug-in this extension implementation belongs to

Specified by:
getPlugIn in interface ExtensionImplementation

pushContextClassLoader

public java.lang.ClassLoader pushContextClassLoader()
Set thread context classloader to classloader of plug-in this extension implementation belongs to

Specified by:
pushContextClassLoader in interface ExtensionImplementation
Returns:
the original thread context classloader

popContextClassLoader

public void popContextClassLoader(java.lang.ClassLoader saveClassLoader)
Restore thread context classloader

Specified by:
popContextClassLoader in interface ExtensionImplementation
Parameters:
saveClassLoader - the original thread context classloader