SourceForge.net Logo

de.mindmatters.faces.spring.factory
Class AbstractCglibSubclassCreator.CglibIdentitySupport

java.lang.Object
  extended byde.mindmatters.faces.spring.factory.AbstractCglibSubclassCreator.CglibIdentitySupport
Enclosing class:
AbstractCglibSubclassCreator

public class AbstractCglibSubclassCreator.CglibIdentitySupport
extends java.lang.Object

Class providing hashCode and equals methods required by CGLIB to ensure that CGLIB doesn't generate a distinct class per bean. Identity is based on class and bean name.

Author:
Andreas Kuhrwahl

Constructor Summary
AbstractCglibSubclassCreator.CglibIdentitySupport()
           
 
Method Summary
 boolean equals(java.lang.Object other)
          Provided equals method required by CGLIB to ensure that CGLIB doesn't generate a distinct class per bean.
protected  java.lang.Class getBeanClass()
          The class of the bean to subclass.
protected  java.lang.String getBeanName()
          The name of the bean to subclass.
 int hashCode()
          Provided hashCode required by CGLIB to ensure that CGLIB doesn't generate a distinct class per bean.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCglibSubclassCreator.CglibIdentitySupport

public AbstractCglibSubclassCreator.CglibIdentitySupport()
Method Detail

hashCode

public final int hashCode()
Provided hashCode required by CGLIB to ensure that CGLIB doesn't generate a distinct class per bean.

Returns:
a hash code value for this object.

equals

public final boolean equals(java.lang.Object other)
Provided equals method required by CGLIB to ensure that CGLIB doesn't generate a distinct class per bean.

Parameters:
other - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.

getBeanClass

protected final java.lang.Class getBeanClass()
The class of the bean to subclass.

Returns:
The class of the bean to subclass.

getBeanName

protected final java.lang.String getBeanName()
The name of the bean to subclass.

Returns:
The name of the bean to subclass.

SourceForge.net Logo

Copyright © 2002 mindmatters GmbH & Co. KG