Browse Source
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1852 50f2f4bb-b051-0410-bef5-90022cba6387pull/1/head
10 changed files with 177 additions and 11 deletions
@ -0,0 +1,51 @@
@@ -0,0 +1,51 @@
|
||||
/* |
||||
* Copyright 2002-2009 the original author or authors. |
||||
* |
||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
||||
* you may not use this file except in compliance with the License. |
||||
* You may obtain a copy of the License at |
||||
* |
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* |
||||
* Unless required by applicable law or agreed to in writing, software |
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
* See the License for the specific language governing permissions and |
||||
* limitations under the License. |
||||
*/ |
||||
|
||||
package org.springframework.jmx.export.annotation; |
||||
|
||||
/** |
||||
* @author Rob Harrop |
||||
*/ |
||||
public class AnnotationTestSubBean extends AnnotationTestBean implements IAnnotationTestBean { |
||||
|
||||
private String colour; |
||||
|
||||
@Override |
||||
public long myOperation() { |
||||
return 123L; |
||||
} |
||||
|
||||
@Override |
||||
public void setAge(int age) { |
||||
super.setAge(age); |
||||
} |
||||
|
||||
@Override |
||||
public int getAge() { |
||||
return super.getAge(); |
||||
} |
||||
|
||||
public String getColour() { |
||||
return this.colour; |
||||
} |
||||
|
||||
public void setColour(String colour) { |
||||
this.colour = colour; |
||||
} |
||||
|
||||
public void fromInterface() { |
||||
} |
||||
} |
||||
@ -0,0 +1,32 @@
@@ -0,0 +1,32 @@
|
||||
/* |
||||
* Copyright 2002-2009 the original author or authors. |
||||
* |
||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
||||
* you may not use this file except in compliance with the License. |
||||
* You may obtain a copy of the License at |
||||
* |
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* |
||||
* Unless required by applicable law or agreed to in writing, software |
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
* See the License for the specific language governing permissions and |
||||
* limitations under the License. |
||||
*/ |
||||
|
||||
package org.springframework.jmx.export.annotation; |
||||
|
||||
/** |
||||
* @author Rob Harrop |
||||
*/ |
||||
public interface IAnnotationTestBean { |
||||
|
||||
@ManagedAttribute |
||||
String getColour(); |
||||
|
||||
@ManagedAttribute |
||||
void setColour(String colour); |
||||
|
||||
@ManagedOperation |
||||
void fromInterface(); |
||||
} |
||||
Loading…
Reference in new issue