01 //
02 // This file is generated by MetaBoss Ver 1.4.0001 at Thu Dec 15 22:36:54 EST 2005
03 // MetaBoss is Copyright 2000-2005 © Softaris Pty.Ltd. All Rights Reserved.
04 // Content of this file is Copyright 2000-2005 © Softaris Pty. Ltd. All Rights Reserved.
05 // This content is licensed under Open Source Gnu Public License (GPL)
06 // Full terms and conditions of GPL can be found found at www.gnu.org
07 //
08 package com.almamater.crs.services.coursesdomainsupport.generatedimpl.xmldevsimulator;
09
10 public class BSDataManagementFactory implements javax.naming.spi.ObjectFactory
11 {
12 private static Object sImplementationCreationSemaphore = new Object();
13 private static BSDataManagementImpl sImplementation = null;
14 /* Returns the instance of the service */
15 public Object getObjectInstance(Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable pEnvironment) throws Exception
16 {
17 // Thread safe singleton implementaton - can create once and use all the time
18 if (sImplementation == null)
19 {
20 synchronized(sImplementationCreationSemaphore)
21 {
22 if (sImplementation == null)
23 sImplementation = new BSDataManagementImpl(pEnvironment);
24 }
25 }
26 return sImplementation;
27 }
28 }
|