KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > raptus > owxv3 > api > usermgr > mmry > MmryUserMgrFactory


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

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

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

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