public class ElementObjectProxy extends Object implements IElementConfigurable, IProxy
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 ElementObjectProxy directly to avoid the cost of
reflective class access. In the second, a concrete factory object may be
derived from ElementObjectProxy 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 |
|---|
ElementObjectProxy() |
ElementObjectProxy(Class pProxyClass,
IElement pElement,
ClassLoader pClassLoader) |
ElementObjectProxy(Class pProxyClass,
IElement pElement,
String classAttribute,
ClassLoader pClassLoader) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(IElement pElement) |
ClassLoader |
getClassLoader() |
IElement |
getElement() |
Class |
getProxyClass() |
String |
getProxyClassAttribute() |
Object |
getRealized()
The object represented by the receiver.
|
public ElementObjectProxy()
public ElementObjectProxy(Class pProxyClass, IElement pElement, ClassLoader pClassLoader)
public ElementObjectProxy(Class pProxyClass, IElement pElement, String classAttribute, ClassLoader pClassLoader)
public void configure(IElement pElement)
configure in interface IElementConfigurablepublic ClassLoader getClassLoader()
public IElement getElement()
public Class getProxyClass()
public String getProxyClassAttribute()
public Object getRealized()
IProxygetRealized in interface IProxyCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.