private static class RecordBuffer.ArgumentBuffer
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
Buffer proxies and
RecordBuffer proxies.| Modifier and Type | Field and Description |
|---|---|
private RecordBuffer |
boundBuffer
The bound buffer of the buffer instance.
|
private RecordBuffer |
boundProxy
The proxy for the bound buffer.
|
private BufferImpl |
buffer
The backing buffer of this proxy, which should handle the majority of the methods
|
private java.lang.String |
bufferName
The buffer name which should be adopted by the buffer
|
private RecordBuffer |
defBuffer
The definition buffer of the buffer instance.
|
private RecordBuffer |
defProxy
The proxy for the definition buffer
|
private java.lang.String |
dmoAlias
The DMO alias which should be adopted by the backing record buffer
|
| Constructor and Description |
|---|
ArgumentBuffer(BufferImpl buffer,
java.lang.String dmoAlias,
java.lang.String bufferName)
The basic initializing constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private RecordBuffer |
createProxy()
Delivers a new proxy backed by this handler.
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Proxy handler which should let the methods to the buffer, beside the ones which
imply the DMO alias or buffer name, which will be handled here.
|
private BufferImpl buffer
private RecordBuffer defBuffer
private RecordBuffer boundBuffer
defBuffer.private RecordBuffer defProxy
private RecordBuffer boundProxy
defProxy, if the definition
buffer is the same as the bound buffer.private java.lang.String dmoAlias
private java.lang.String bufferName
ArgumentBuffer(BufferImpl buffer, java.lang.String dmoAlias, java.lang.String bufferName)
buffer - The buffer which is going to handle most of the methodsdmoAlias - The DMO alias which should be adopted by the RecordBufferbufferName - The name which should be adopted by the BufferImplprivate RecordBuffer createProxy()
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.Throwable