KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > management > config > WebServiceEndpointConfigImpl


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

23 package com.sun.enterprise.management.config;
24
25 import java.util.Map JavaDoc;
26 import java.util.List JavaDoc;
27 import java.util.HashMap JavaDoc;
28
29 import javax.management.ObjectName JavaDoc;
30
31 import com.sun.appserv.management.base.XTypes;
32 import com.sun.appserv.management.util.misc.TypeCast;
33
34 import com.sun.appserv.management.config.TransformationRuleConfigKeys;
35 import com.sun.appserv.management.config.TransformationRuleConfig;
36
37
38 import com.sun.enterprise.admin.wsmgmt.WebServiceMgrBackEnd;
39
40 import com.sun.enterprise.management.support.Delegate;
41 import com.sun.enterprise.management.support.AMXAttributeNameMapper;
42
43
44 public final class WebServiceEndpointConfigImpl extends AMXConfigImplBase
45     implements ConfigFactoryCallback
46     // implements WebServiceEndpointConfig
47
{
48         public
49     WebServiceEndpointConfigImpl( final Delegate delegate )
50     {
51         super( delegate );
52     }
53
54     // this method may be superfluous as it is probably handled automatically
55
public Map JavaDoc<String JavaDoc,ObjectName JavaDoc> getTransformationRuleConfigObjectNameMap()
56      {
57           return(getContaineeObjectNameMap(
58             XTypes.TRANSFORMATION_RULE_CONFIG));
59      }
60
61     // this method may be superfluous as it is probably handled automatically
62
public Map JavaDoc<String JavaDoc,ObjectName JavaDoc>
63     getRegistryLocationConfigObjectNameMap()
64     {
65        return (getContaineeObjectNameMap(XTypes.REGISTRY_LOCATION_CONFIG));
66     }
67
68      public List JavaDoc<ObjectName JavaDoc> getTransformationRuleConfigObjectNameList() {
69         final String JavaDoc wsepName = getName();
70         final String JavaDoc appId = getContainer().getName();
71       
72         final Map JavaDoc<String JavaDoc,ObjectName JavaDoc> containeeMap =
73             getContaineeObjectNameMap(TransformationRuleConfig.J2EE_TYPE);
74             
75         final List JavaDoc<ObjectName JavaDoc> objectNames = TypeCast.checkList(
76             WebServiceMgrBackEnd.getManager().
77                 getTransformationRuleConfigObjectNameList( appId, wsepName, containeeMap ),
78                     ObjectName JavaDoc.class);
79                 
80         return objectNames;
81      }
82
83
84     @Override JavaDoc
85         protected void
86     addCustomMappings( final AMXAttributeNameMapper mapper )
87     {
88         super.addCustomMappings( mapper );
89           
90         mapper.matchName( "MonitoringLevel", "monitoring" );
91     }
92 }
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
Popular Tags