1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172
|
// Tags: not-a-test
// Copyright (C) 2007 Andrew John Hughes <gnu_andrew@member.fsf.org>
// This file is part of Mauve.
// Mauve is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2, or (at your option)
// any later version.
// Mauve is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with Mauve; see the file COPYING. If not, write to
// the Free Software Foundation, 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
package gnu.testlet.javax.management.MBeanServerInvocationHandler;
import javax.management.ObjectName;
import java.util.Map;
import java.util.Set;
import java.util.SortedMap;
import java.util.SortedSet;
/**
* Test {@link javax.management.MXBean} implementation for proxying.
*
* @author <a href="mailto:gnu_andrew@member.fsf.org">Andrew John Hughes</a>
*/
public class TestC
implements TestCMXBean
{
private int id;
private Integer size;
private ObjectName name;
private float[] weights;
private String[] names;
private Set<Integer> ages;
private SortedSet<String> biscuits;
private Colour colour;
private Map<String,Integer> numbers;
private SortedMap<String, Integer> sortedNumbers;
private ChildMXBean child;
public int getId()
{
return id;
}
public void setId(int id)
{
this.id = id;
}
public Integer getSize()
{
return size;
}
public void setSize(Integer size)
{
this.size = size;
}
public ObjectName getName()
{
return name;
}
public void setName(ObjectName name)
{
this.name = name;
}
public float[] getWeights()
{
return weights;
}
public void setWeights(float[] weights)
{
this.weights = weights;
}
public String[] getNames()
{
return names;
}
public void setNames(String[] names)
{
this.names = names;
}
public Set<Integer> getAges()
{
return ages;
}
public void setAges(Set<Integer> ages)
{
this.ages = ages;
}
public SortedSet<String> getBiscuits()
{
return biscuits;
}
public void setBiscuits(SortedSet<String> biscuits)
{
this.biscuits = biscuits;
}
public Colour getColour()
{
return colour;
}
public void setColour(Colour colour)
{
this.colour = colour;
}
public Map<String,Integer> getPhoneNumbers()
{
return numbers;
}
public void setPhoneNumbers(Map<String,Integer> numbers)
{
this.numbers = numbers;
}
public SortedMap<String,Integer> getSortedPhoneNumbers()
{
return sortedNumbers;
}
public void setSortedPhoneNumbers(SortedMap<String,Integer> numbers)
{
sortedNumbers = numbers;
}
public ChildMXBean getChild()
{
return child;
}
public void setChild(ChildMXBean child)
{
this.child = child;
}
}
|