author | mkos |
Sun, 30 Dec 2012 00:00:00 +0100 | |
changeset 22678 | ac1ea46be942 |
parent 12009 | 4abb694f273a |
permissions | -rw-r--r-- |
12009 | 1 |
/* |
22678
ac1ea46be942
8029237: Update copyright year to match last edit in jaxws repository for 2012
mkos
parents:
12009
diff
changeset
|
2 |
* Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. |
12009 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. Oracle designates this |
|
8 |
* particular file as subject to the "Classpath" exception as provided |
|
9 |
* by Oracle in the LICENSE file that accompanied this code. |
|
10 |
* |
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
24 |
*/ |
|
25 |
||
26 |
||
27 |
/* |
|
28 |
* To change this template, choose Tools | Templates |
|
29 |
* and open the template in the editor. |
|
30 |
*/ |
|
31 |
||
32 |
package com.sun.org.glassfish.gmbal; |
|
33 |
||
34 |
import java.io.IOException; |
|
35 |
import java.lang.annotation.Annotation; |
|
36 |
import java.lang.reflect.AnnotatedElement; |
|
37 |
import java.util.ResourceBundle; |
|
38 |
import javax.management.MBeanServer; |
|
39 |
import javax.management.ObjectName; |
|
40 |
||
41 |
/** NOP impl of ManagedObjectManager used when annotations and ManagedObjectManager |
|
42 |
* are needed, but MBeans are not. This allows using gmbal to optionally support |
|
43 |
* MBeans. This is the implementation of the ManagedObjectManager that is used when |
|
44 |
* the full implementation is not available. |
|
45 |
* |
|
46 |
* @author ken_admin |
|
47 |
*/ |
|
48 |
class ManagedObjectManagerNOPImpl implements ManagedObjectManager { |
|
49 |
static final ManagedObjectManager self = |
|
50 |
new ManagedObjectManagerNOPImpl() ; |
|
51 |
private static final GmbalMBean gmb = |
|
52 |
new GmbalMBeanNOPImpl() ; |
|
53 |
||
54 |
private ManagedObjectManagerNOPImpl() {} |
|
55 |
||
56 |
public void suspendJMXRegistration() { |
|
57 |
// NOP |
|
58 |
} |
|
59 |
||
60 |
public void resumeJMXRegistration() { |
|
61 |
// NOP |
|
62 |
} |
|
63 |
||
64 |
public boolean isManagedObject( Object obj ) { |
|
65 |
return false ; |
|
66 |
} |
|
67 |
||
68 |
public GmbalMBean createRoot() { |
|
69 |
return gmb ; |
|
70 |
} |
|
71 |
||
72 |
public GmbalMBean createRoot(Object root) { |
|
73 |
return gmb ; |
|
74 |
} |
|
75 |
||
76 |
public GmbalMBean createRoot(Object root, String name) { |
|
77 |
return gmb ; |
|
78 |
} |
|
79 |
||
80 |
public Object getRoot() { |
|
81 |
return null ; |
|
82 |
} |
|
83 |
||
84 |
public GmbalMBean register(Object parent, Object obj, String name) { |
|
85 |
return gmb ; |
|
86 |
} |
|
87 |
||
88 |
public GmbalMBean register(Object parent, Object obj) { |
|
89 |
return gmb ; |
|
90 |
} |
|
91 |
||
92 |
public GmbalMBean registerAtRoot(Object obj, String name) { |
|
93 |
return gmb ; |
|
94 |
} |
|
95 |
||
96 |
public GmbalMBean registerAtRoot(Object obj) { |
|
97 |
return gmb ; |
|
98 |
} |
|
99 |
||
100 |
public void unregister(Object obj) { |
|
101 |
// NOP |
|
102 |
} |
|
103 |
||
104 |
public ObjectName getObjectName(Object obj) { |
|
105 |
return null ; |
|
106 |
} |
|
107 |
||
108 |
public Object getObject(ObjectName oname) { |
|
109 |
return null ; |
|
110 |
} |
|
111 |
||
112 |
public void stripPrefix(String... str) { |
|
113 |
// NOP |
|
114 |
} |
|
115 |
||
116 |
public String getDomain() { |
|
117 |
return null ; |
|
118 |
} |
|
119 |
||
120 |
public void setMBeanServer(MBeanServer server) { |
|
121 |
// NOP |
|
122 |
} |
|
123 |
||
124 |
public MBeanServer getMBeanServer() { |
|
125 |
return null ; |
|
126 |
} |
|
127 |
||
128 |
public void setResourceBundle(ResourceBundle rb) { |
|
129 |
// NOP |
|
130 |
} |
|
131 |
||
132 |
public ResourceBundle getResourceBundle() { |
|
133 |
return null ; |
|
134 |
} |
|
135 |
||
136 |
public void addAnnotation(AnnotatedElement element, Annotation annotation) { |
|
137 |
// NOP |
|
138 |
} |
|
139 |
||
140 |
public void setRegistrationDebug(RegistrationDebugLevel level) { |
|
141 |
// NOP |
|
142 |
} |
|
143 |
||
144 |
public void setRuntimeDebug(boolean flag) { |
|
145 |
// NOP |
|
146 |
} |
|
147 |
||
148 |
public String dumpSkeleton(Object obj) { |
|
149 |
return "" ; |
|
150 |
} |
|
151 |
||
152 |
public void close() throws IOException { |
|
153 |
// NOP |
|
154 |
} |
|
155 |
||
156 |
public void setTypelibDebug(int level) { |
|
157 |
// NOP |
|
158 |
} |
|
159 |
||
160 |
public void stripPackagePrefix() { |
|
161 |
// NOP |
|
162 |
} |
|
163 |
||
164 |
public void suppressDuplicateRootReport(boolean suppressReport) { |
|
165 |
// NOP |
|
166 |
} |
|
167 |
||
168 |
public AMXClient getAMXClient(Object obj) { |
|
169 |
return null ; |
|
170 |
} |
|
171 |
||
172 |
public void setJMXRegistrationDebug(boolean flag) { |
|
173 |
// NOP |
|
174 |
} |
|
175 |
} |