public final class ServiceBean extends java.lang.Object implements PluginAware
Modifier and Type | Field and Description |
---|---|
java.lang.String |
serviceInterface |
Constructor and Description |
---|
ServiceBean() |
Modifier and Type | Method and Description |
---|---|
PluginDescriptor |
getPluginDescriptor() |
static <T> java.util.List<T> |
loadServicesFromBeans(ExtensionPointName<ServiceBean> epName,
java.lang.Class<T> componentClass) |
void |
setPluginDescriptor(PluginDescriptor pluginDescriptor)
Called by extensions framework when extension is loaded from plugin.xml descriptor.
|
public static <T> java.util.List<T> loadServicesFromBeans(ExtensionPointName<ServiceBean> epName, java.lang.Class<T> componentClass)
public PluginDescriptor getPluginDescriptor()
public void setPluginDescriptor(PluginDescriptor pluginDescriptor)
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
pluginDescriptor
- descriptor of the plugin that provided this particular extension.