01: /**
02: * $Id: CallInvokerFactory.java,v 1.1 2003/06/03 10:48:20 sy131129 Exp $
03: * Copyright 2003 Sun Microsystems, Inc. All
04: * rights reserved. Use of this product is subject
05: * to license terms. Federal Acquisitions:
06: * Commercial Software -- Government Users
07: * Subject to Standard License Terms and
08: * Conditions.
09: *
10: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
11: * are trademarks or registered trademarks of Sun Microsystems,
12: * Inc. in the United States and other countries.
13: */package com.sun.portal.providers.simplewebservice.rpc;
14:
15: import com.sun.portal.providers.simplewebservice.rpc.CallInvoker;
16:
17: public class CallInvokerFactory {
18:
19: private static final String DOC_BIND_STYLE = "document";
20: private static final String RPC_BIND_STYLE = "rpc";
21:
22: public static CallInvoker newInstance(String bindingStyle) {
23:
24: if (bindingStyle.equals(DOC_BIND_STYLE)) {
25: return new DocumentLiteralCallInvoker();
26:
27: } else if (bindingStyle.equals(RPC_BIND_STYLE)) {
28: return new RPCCallInvoker();
29:
30: }
31: return null;
32: }
33:
34: }
|