org.apache.commons.betwixt
Class LoopBean

java.lang.Object
  extended by 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)
           
 
Method Summary
static LoopBean createEmptyLoopExampleBean()
           
static LoopBean createIdOnlyLoopExampleBean()
           
static LoopBean createLoopExampleBean()
           
static LoopBean createNoLoopExampleBean()
           
static LoopBean createNotEmptyNoLoopExampleBean()
           
 LoopBean getFriend()
           
 java.lang.String getName()
           
 void setFriend(LoopBean friend)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LoopBean

public LoopBean(java.lang.String name)
Method Detail

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.