com.softwareag.centrasite.appl.framework.persistence.impl
Class DynamicRegistryBeanHandler

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.persistence.impl.DynamicRegistryBeanHandler
All Implemented Interfaces:
BeanInfo, java.lang.reflect.InvocationHandler

public class DynamicRegistryBeanHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler, BeanInfo

InvocationHandler implementation for simple proxies implementing the BeanInfo interface.


Constructor Summary
DynamicRegistryBeanHandler(PersistenceContext pContext, DynamicRegistryBean pBean)
           
 
Method Summary
 DynamicRegistryBean getBean()
          Returns the registry bean.
 PersistenceContext getContext()
           
 Key getKey()
          Returns the objects key.
 PersistenceContext getPersistenceContext()
          Returns the pool, which created this bean.
 java.lang.Object invoke(java.lang.Object pProxy, java.lang.reflect.Method pMethod, java.lang.Object[] pArgs)
           
 boolean isCreated()
          Returns, whether this is object has already been created in the registry.
 boolean isDeleted()
          Returns, whether the object is marked as deleted.
 boolean isModified()
          Returns, whether the object is modified.
 void setBean(DynamicRegistryBean pBean)
          Sets the registry bean.
 void setCreated(boolean created)
          Sets, whether the object is created or retrieved from the registry.
 void setDeleted(boolean pDeleted)
          Sets, whether the object is marked as deleted.
 void setModified(boolean pModified)
          Sets, whether the object is modified.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicRegistryBeanHandler

public DynamicRegistryBeanHandler(PersistenceContext pContext,
                                  DynamicRegistryBean pBean)
Parameters:
pContext -
pBean -
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object pProxy,
                               java.lang.reflect.Method pMethod,
                               java.lang.Object[] pArgs)
                        throws java.lang.Throwable
Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable

isDeleted

public boolean isDeleted()
Description copied from interface: BeanInfo
Returns, whether the object is marked as deleted.

Specified by:
isDeleted in interface BeanInfo

setDeleted

public void setDeleted(boolean pDeleted)
Description copied from interface: BeanInfo
Sets, whether the object is marked as deleted.

Specified by:
setDeleted in interface BeanInfo

isModified

public boolean isModified()
Description copied from interface: BeanInfo
Returns, whether the object is modified.

Specified by:
isModified in interface BeanInfo

setModified

public void setModified(boolean pModified)
Description copied from interface: BeanInfo
Sets, whether the object is modified.

Specified by:
setModified in interface BeanInfo

isCreated

public boolean isCreated()
Description copied from interface: BeanInfo
Returns, whether this is object has already been created in the registry.

Specified by:
isCreated in interface BeanInfo

getPersistenceContext

public PersistenceContext getPersistenceContext()
Description copied from interface: BeanInfo
Returns the pool, which created this bean.

Specified by:
getPersistenceContext in interface BeanInfo

getBean

public DynamicRegistryBean getBean()
Description copied from interface: BeanInfo
Returns the registry bean.

Specified by:
getBean in interface BeanInfo

setBean

public void setBean(DynamicRegistryBean pBean)
Description copied from interface: BeanInfo
Sets the registry bean. This is used by the update method.

Specified by:
setBean in interface BeanInfo

getKey

public Key getKey()
Description copied from interface: BeanInfo
Returns the objects key.

Specified by:
getKey in interface BeanInfo

getContext

public PersistenceContext getContext()

setCreated

public void setCreated(boolean created)
Description copied from interface: BeanInfo
Sets, whether the object is created or retrieved from the registry.

Specified by:
setCreated in interface BeanInfo