org.apache.commons.betwixt
Class LoopBean
java.lang.Object
org.apache.commons.betwixt.LoopBean
public class LoopBean
- extends java.lang.Object
This is a bean specifically designed to test cyclic references.
The idea is that there's a count that counts every time getFriend
gets called and throws a RuntimeException
if the count gets too high.
- Version:
- $Revision: 438373 $
- Author:
- Robert Burrell Donkin
Constructor Summary |
LoopBean(java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LoopBean
public LoopBean(java.lang.String name)
createNoLoopExampleBean
public static final LoopBean createNoLoopExampleBean()
createLoopExampleBean
public static final LoopBean createLoopExampleBean()
createNotEmptyNoLoopExampleBean
public static final LoopBean createNotEmptyNoLoopExampleBean()
createEmptyLoopExampleBean
public static final LoopBean createEmptyLoopExampleBean()
createIdOnlyLoopExampleBean
public static final LoopBean createIdOnlyLoopExampleBean()
getFriend
public LoopBean getFriend()
setFriend
public void setFriend(LoopBean friend)
getName
public java.lang.String getName()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.