KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > connectors > util > ConnectorConfigParser


1
2 /*
3  * The contents of this file are subject to the terms
4  * of the Common Development and Distribution License
5  * (the License). You may not use this file except in
6  * compliance with the License.
7  *
8  * You can obtain a copy of the license at
9  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
10  * glassfish/bootstrap/legal/CDDLv1.0.txt.
11  * See the License for the specific language governing
12  * permissions and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL
15  * Header Notice in each file and include the License file
16  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
17  * If applicable, add the following below the CDDL Header,
18  * with the fields enclosed by brackets [] replaced by
19  * you own identifying information:
20  * "Portions Copyrighted [year] [name of copyright owner]"
21  *
22  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
23  */

24
25 package com.sun.enterprise.connectors.util;
26
27 import java.util.*;
28 import com.sun.enterprise.connectors.*;
29 import com.sun.enterprise.deployment.*;
30
31
32 /** Interface class of connector configuration parser methods.
33  * Implemented by specific configuration parser classes.
34  * @author Srikanth P
35  */

36
37 public interface ConnectorConfigParser {
38
39     /**
40      * Admin object type.
41      */

42
43     String JavaDoc AOR = "AdminObject";
44
45     /**
46      * Managed connection factory type.
47      */

48
49     String JavaDoc MCF = "ManagedConnectionFactory";
50
51     /**
52      * Resource adapter type.
53      */

54
55     String JavaDoc RA = "ResourceAdapter";
56
57     /**
58      * Message listener type.
59      */

60
61     String JavaDoc MSL = "MessageListener";
62
63     /**
64      * Instances of util classes. Used as composition pattern.
65      */

66     ConnectorDDTransformUtils ddTransformUtil = new ConnectorDDTransformUtils();
67     ConnectorConfigParserUtils configParserUtil =
68                             new ConnectorConfigParserUtils();
69
70     /**
71      * Obtains the merged javabean properties (properties present in ra.xml
72      * and introspected properties) of a specific configuration.
73      * @param desc ConnectorDescriptor pertaining to rar .
74      * @param connectionDefName Connection definition name or
75      * admin object interface .
76      * @return Merged properties.
77      */

78
79     Properties getJavaBeanProps(ConnectorDescriptor desc,
80             String JavaDoc connectionDefName, String JavaDoc rarName) throws ConnectorRuntimeException;
81 }
82
Popular Tags