KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > jmx > export > annotation > ManagedResource


1 /*
2  * Copyright 2002-2005 the original author or authors.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.springframework.jmx.export.annotation;
18
19 import java.lang.annotation.Documented JavaDoc;
20 import java.lang.annotation.ElementType JavaDoc;
21 import java.lang.annotation.Retention JavaDoc;
22 import java.lang.annotation.RetentionPolicy JavaDoc;
23 import java.lang.annotation.Target JavaDoc;
24
25 /**
26  * JDK 1.5+ class-level annotation that indicates to register
27  * instances of a class with a JMX server, corresponding to
28  * the ManagedResource attribute.
29  *
30  * @author Rob Harrop
31  * @since 1.2
32  * @see org.springframework.jmx.export.metadata.ManagedResource
33  */

34 @Target JavaDoc(ElementType.TYPE)
35 @Retention JavaDoc(RetentionPolicy.RUNTIME)
36 @Documented JavaDoc
37 public @interface ManagedResource {
38
39     String JavaDoc objectName() default "";
40
41     String JavaDoc description() default "";
42
43     int currencyTimeLimit() default -1;
44
45     boolean log() default false;
46
47     String JavaDoc logFile() default "";
48
49     String JavaDoc persistPolicy() default "";
50
51     int persistPeriod() default -1;
52
53     String JavaDoc persistName() default "";
54
55     String JavaDoc persistLocation() default "";
56
57 }
58
Popular Tags