01: /*
02: * Copyright 2002-2005 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: * @since 1.2
32: * @see org.springframework.jmx.export.metadata.ManagedResource
33: */
34: @Target(ElementType.TYPE)
35: @Retention(RetentionPolicy.RUNTIME)
36: @Documented
37: public @interface ManagedResource {
38:
39: String objectName() default "";
40:
41: String description() default "";
42:
43: int currencyTimeLimit() default -1;
44:
45: boolean log() default false;
46:
47: String logFile() default "";
48:
49: String persistPolicy() default "";
50:
51: int persistPeriod() default -1;
52:
53: String persistName() default "";
54:
55: String persistLocation() default "";
56:
57: }
|