KickJava   Java API By Example, From Geeks To Geeks.

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


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 com.sun.enterprise.connectors.*;
28 import com.sun.enterprise.deployment.*;
29 import java.util.*;
30
31 /** Interface class of managed connection factory parser methods.
32  * @author Srikanth P
33  */

34
35
36 public interface MessageListenerConfigParser extends ConnectorConfigParser {
37
38
39     /**
40      * Obtains the Message Listener types of a given rar.
41      * @param desc ConnectorDescriptor pertaining to rar.
42      * @return Array of MessageListener types as strings
43      * @throws ConnectorRuntimeException If rar is not exploded or
44      * incorrect ra.xml
45      */

46
47     public String JavaDoc[] getMessageListenerTypes(ConnectorDescriptor desc)
48                       throws ConnectorRuntimeException;
49
50     /**
51      * Returns the ActivationSpecClass name for the given rar and message
52      * listener type.
53      * @param desc ConnectorDescriptor pertaining to rar.
54      * @param messageListenerType MessageListener type
55      * @throws ConnectorRuntimeException If rar is not exploded or
56      * incorrect ra.xml
57      */

58
59     public String JavaDoc getActivationSpecClass(ConnectorDescriptor desc,
60           String JavaDoc messageListenerType) throws ConnectorRuntimeException;
61
62     /**
63      * Returns the Properties object consisting of PropertyName as the key
64      * and the datatype as the value
65      * @param desc ConnectorDescriptor pertaining to rar.
66      * @param messageListenerType message listener type.It is uniqie
67      * across all <messagelistener> sub-elements in <messageadapter>
68      * element in a given rar.
69      * @return properties object with the property names(key) and datatype
70      * of property(as value).
71      * @throws ConnectorRuntimeException if either of the parameters are null.
72      * If corresponding rar is not deployed i.e moduleDir is invalid.
73      * If messagelistener type is not found in ra.xml
74      */

75   
76     public Properties getJavaBeanReturnTypes(ConnectorDescriptor desc,
77           String JavaDoc messageListenerType) throws ConnectorRuntimeException;
78 }
79
Popular Tags