01: /*
02: * Copyright 2002-2007 the original author or authors.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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;
20: import java.lang.annotation.ElementType;
21: import java.lang.annotation.Retention;
22: import java.lang.annotation.RetentionPolicy;
23: import java.lang.annotation.Target;
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: * @author Juergen Hoeller
32: * @since 1.2
33: * @see org.springframework.jmx.export.metadata.ManagedResource
34: */
35: @Target(ElementType.TYPE)
36: @Retention(RetentionPolicy.RUNTIME)
37: @Documented
38: public @interface ManagedResource {
39:
40: /**
41: * The annotation value is equivalent to the <code>objectName</code>
42: * attribute, for simple default usage.
43: */
44: String value() default "";
45:
46: String objectName() default "";
47:
48: String description() default "";
49:
50: int currencyTimeLimit() default -1;
51:
52: boolean log() default false;
53:
54: String logFile() default "";
55:
56: String persistPolicy() default "";
57:
58: int persistPeriod() default -1;
59:
60: String persistName() default "";
61:
62: String persistLocation() default "";
63:
64: }
|