KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > core > model > InternalResourcesTestClass


1 /*************************************************************************
2  * *
3  * EJBCA: The OpenSource Certificate Authority *
4  * *
5  * This software is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU Lesser General Public *
7  * License as published by the Free Software Foundation; either *
8  * version 2.1 of the License, or any later version. *
9  * *
10  * See terms of license at gnu.org. *
11  * *
12  *************************************************************************/

13 package org.ejbca.core.model;
14
15
16 /**
17  * Class inheriting the internal resources class. and overloads the load
18  * method in order to be used in a testscript
19  *
20  * @author Philip Vendil 2006 sep 25
21  *
22  * @version $Id: InternalResourcesTestClass.java,v 1.2 2006/10/23 16:25:11 anatom Exp $
23  */

24 public class InternalResourcesTestClass extends InternalResources {
25
26     public InternalResourcesTestClass(boolean test) {
27         super(test);
28     }
29     
30     /**
31      * Metod that returs a instance of the InternalResources
32      * might be null if load() haven't been called before this method.
33      */

34     public static InternalResources getInstance(){
35         if(instance == null){
36             instance = new InternalResourcesTestClass(true);
37         }
38         return instance;
39     }
40 }
41
Popular Tags