KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > codehaus > spice > jndikit > test > ExceptionReferenceable


1 /*
2  * Copyright (C) The Spice Group. All rights reserved.
3  *
4  * This software is published under the terms of the Spice
5  * Software License version 1.1, a copy of which has been included
6  * with this distribution in the LICENSE.txt file.
7  */

8 package org.codehaus.spice.jndikit.test;
9
10 import javax.naming.Reference JavaDoc;
11 import javax.naming.Referenceable JavaDoc;
12
13 /**
14  * Implementation of {@link Referenceable}, for testing purposes. When {@link
15  * TestObjectFactory} encounters a {@link Reference} to this, it throws an
16  * exception.
17  *
18  * @author <a HREF="mailto:tma@netspace.net.au">Tim Anderson</a>
19  * @version $Revision: 1.1 $ $Date: 2005/06/30 04:22:16 $
20  * @see TestObjectFactory
21  */

22 public class ExceptionReferenceable implements Referenceable JavaDoc
23 {
24
25     /**
26      * Retrieves the Reference of this object.
27      *
28      * @return the non-null Reference of this object.
29      */

30     public Reference JavaDoc getReference()
31     {
32         return new Reference JavaDoc( getClass().getName(),
33                               TestObjectFactory.class.getName(),
34                               null );
35     }
36
37 }
38
Popular Tags