KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > raptus > owxv3 > api > usermgr > db > dbUserMgrFactory


1 /*
2  * MmryUserMgrFactory.java
3  *
4  * Created on May 29, 2003, 11:04 AM
5  */

6
7 package com.raptus.owxv3.api.usermgr.db;
8
9 import com.raptus.owxv3.api.usermgr.*;
10 import com.raptus.owxv3.*;
11 /**
12  *
13  * @author root
14  */

15 public class dbUserMgrFactory implements UserMgrFactoryIF
16 {
17
18     static dbUserMgr _instance1 = null;
19     /** Creates a new instance of MmryUserMgrFactory */
20     public dbUserMgrFactory()
21     {
22     }
23     
24     /** Create a user manager, according to object param.
25      *
26      * All data related to security should be taken from param object
27      *
28      * @param param - the parameter containing all data related to security
29      * (like users, roles, etc)
30      *
31      */

32     public UserMgr createUserManager(Object JavaDoc param)
33     {
34         if(_instance1 == null)
35         {
36             LoggingManager.log("Creating new instance of the Database User Manager",this);
37             _instance1 = new dbUserMgr();
38         }
39         return (UserMgr)_instance1;
40     }
41     
42 }
43
Popular Tags