public class ExtensionObjectProxy<T> extends Object implements IElementConfigurable, IProxy<T>
IExtension.
This object encapsulates the IExtension and the Element,
preparing for realization of the intended object on demand. Two common
scenarios are supported. In the first, the provider of the extension point
itself creates the ExtensionObjectProxy directly to avoid the cost of
reflective class access. In the second, a concrete factory object may be
derived from ExtensionObjectProxy to inherit its lazyness with regard
to hosting an object to be realized. The concrete proxy class name may be
declared in an another element attribute than "class".
| Constructor and Description |
|---|
ExtensionObjectProxy(Class pProxyClass,
Object context,
IElement pElement) |
ExtensionObjectProxy(Class pProxyClass,
Object context,
IElement pElement,
String classAttribute) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(IElement element) |
Object |
getContext() |
IElement |
getElement() |
Class |
getProxyClass() |
String |
getProxyClassAttribute() |
T |
getRealized()
The object represented by the receiver.
|
public ExtensionObjectProxy(Class pProxyClass, Object context, IElement pElement)
public void configure(IElement element) throws ConfigurationException
configure in interface IElementConfigurableConfigurationExceptionpublic Object getContext()
public IElement getElement()
public Class getProxyClass()
public String getProxyClassAttribute()
public T getRealized()
IProxygetRealized in interface IProxy<T>Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.