01: // This file is generated by MetaBoss at Sat Feb 21 10:22:26 EST 2004
02: // MetaBoss release identifier is 0.5.0419
03: // MetaBoss is Copyright 2000-2004 © Softaris Pty.Ltd. All Rights Reserved.
04: // Source code in this file is owned by MetaBoss licensee
05: // Use and distribution of source code in this file governed by MetaBoss licensee
06: package com.hatmaker.crm.services.miscellaneousservices.defaultimpl;
07:
08: public class BSBackofficeFunctionsFactory implements
09: javax.naming.spi.ObjectFactory {
10: private static Object sImplementationCreationSemaphore = new Object();
11: private static BSBackofficeFunctionsImpl sImplementation = null;
12:
13: /* Returns the instance of the service */
14: public Object getObjectInstance(Object obj, javax.naming.Name name,
15: javax.naming.Context nameCtx,
16: java.util.Hashtable environment) throws Exception {
17: // Thread safe singleton implementaton - can create once and use all the time
18: if (sImplementation == null) {
19: synchronized (sImplementationCreationSemaphore) {
20: if (sImplementation == null)
21: sImplementation = new BSBackofficeFunctionsImpl();
22: }
23: }
24: return sImplementation;
25: }
26: }
|