public abstract class BaseKeyedLazyInstance<T> extends java.lang.Object implements PluginAware
Modifier | Constructor and Description |
---|---|
protected |
BaseKeyedLazyInstance() |
protected |
BaseKeyedLazyInstance(T instance) |
Modifier and Type | Method and Description |
---|---|
T |
createInstance(ComponentManager componentManager) |
protected abstract java.lang.String |
getImplementationClassName() |
T |
getInstance() |
java.lang.ClassLoader |
getLoaderForClass() |
PluginDescriptor |
getPluginDescriptor() |
void |
setPluginDescriptor(PluginDescriptor value)
Called by extensions framework when extension is loaded from plugin.xml descriptor.
|
protected BaseKeyedLazyInstance()
protected BaseKeyedLazyInstance(T instance)
public final void setPluginDescriptor(PluginDescriptor value)
PluginAware
If this method is implemented in a bean class
extension point and it also exposes the stored plugin description via getPluginDescriptor
method, you must annotate the latter
with @Transient
to ensure that serialization engine won't try to deserialize this property.
setPluginDescriptor
in interface PluginAware
value
- descriptor of the plugin that provided this particular extension.protected abstract java.lang.String getImplementationClassName()
public final T getInstance()
public T createInstance(ComponentManager componentManager)
public final PluginDescriptor getPluginDescriptor()
public java.lang.ClassLoader getLoaderForClass()