User: ejort
Date: 02/02/01 19:16:24
Added: src/main/org/jboss/test/jbossmx/compliance/standard/support
ArbitraryInterface.java DynamicDerived1.java
StandardDerived1.java StandardDerived2.java
StandardDerived2MBean.java StandardDerived3.java
StandardDerived3MBean.java StandardParent.java
StandardParentMBean.java Torture.java
TortureMBean.java Trivial.java TrivialMBean.java
Log:
JBossMX tests, temporary modifications to classpaths see comment in build.xml
Revision Changes Path
1.1
jbosstest/src/main/org/jboss/test/jbossmx/compliance/standard/support/ArbitraryInterface.java
Index: ArbitraryInterface.java
===================================================================
/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.test.jbossmx.compliance.standard.support;
public interface ArbitraryInterface
{
void setArbitraryValue(String value);
}
1.1
jbosstest/src/main/org/jboss/test/jbossmx/compliance/standard/support/DynamicDerived1.java
Index: DynamicDerived1.java
===================================================================
/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.test.jbossmx.compliance.standard.support;
import javax.management.DynamicMBean;
import javax.management.AttributeNotFoundException;
import javax.management.MBeanException;
import javax.management.ReflectionException;
import javax.management.Attribute;
import javax.management.InvalidAttributeValueException;
import javax.management.AttributeList;
import javax.management.MBeanInfo;
import javax.management.MBeanAttributeInfo;
import javax.management.MBeanConstructorInfo;
import javax.management.MBeanOperationInfo;
import javax.management.MBeanNotificationInfo;
/**
* implementing DynamicMBean means that we don't inherit the mbean info from
* StandardParentMBean
*/
public class DynamicDerived1 extends StandardParent implements DynamicMBean
{
public Object getAttribute(String attribute)
throws AttributeNotFoundException, MBeanException, ReflectionException
{
return null;
}
public void setAttribute(Attribute attribute)
throws AttributeNotFoundException, InvalidAttributeValueException,
MBeanException, ReflectionException
{
}
public AttributeList getAttributes(String[] attributes)
{
return new AttributeList();
}
public AttributeList setAttributes(AttributeList attributes)
{
return new AttributeList();
}
public Object invoke(String actionName,
Object[] params,
String[] signature)
throws MBeanException, ReflectionException
{
return null;
}
public MBeanInfo getMBeanInfo()
{
return new MBeanInfo(this.getClass().getName(), "tester", new
MBeanAttributeInfo[0],
new MBeanConstructorInfo[0], new MBeanOperationInfo[0],
new MBeanNotificationInfo[0]);
}
}
1.1
jbosstest/src/main/org/jboss/test/jbossmx/compliance/standard/support/StandardDerived1.java
Index: StandardDerived1.java
===================================================================
/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.test.jbossmx.compliance.standard.support;
public class StandardDerived1 extends StandardParent
{
/**
* we have no MBean interface so we inherit from our superclass MBean interface
*/
public StandardDerived1()
{
}
}
1.1
jbosstest/src/main/org/jboss/test/jbossmx/compliance/standard/support/StandardDerived2.java
Index: StandardDerived2.java
===================================================================
/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.test.jbossmx.compliance.standard.support;
public class StandardDerived2 extends StandardParent implements StandardDerived2MBean
{
/**
* our own MBean interface overrides the StandardParentMBean one we inherited.
*/
public void setDerivedValue(String derived)
{
}
public String getParentValue()
{
return null;
}
}
1.1
jbosstest/src/main/org/jboss/test/jbossmx/compliance/standard/support/StandardDerived2MBean.java
Index: StandardDerived2MBean.java
===================================================================
/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.test.jbossmx.compliance.standard.support;
public interface StandardDerived2MBean
{
void setDerivedValue(String derived);
String getParentValue();
}
1.1
jbosstest/src/main/org/jboss/test/jbossmx/compliance/standard/support/StandardDerived3.java
Index: StandardDerived3.java
===================================================================
/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.test.jbossmx.compliance.standard.support;
public class StandardDerived3 implements StandardDerived3MBean
{
public void setArbitraryValue(String value)
{
}
}
1.1
jbosstest/src/main/org/jboss/test/jbossmx/compliance/standard/support/StandardDerived3MBean.java
Index: StandardDerived3MBean.java
===================================================================
/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.test.jbossmx.compliance.standard.support;
public interface StandardDerived3MBean extends ArbitraryInterface
{
}
1.1
jbosstest/src/main/org/jboss/test/jbossmx/compliance/standard/support/StandardParent.java
Index: StandardParent.java
===================================================================
/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.test.jbossmx.compliance.standard.support;
public abstract class StandardParent implements StandardParentMBean
{
public void setParentValue(String value)
{
}
public void setAvailable(boolean available)
{
}
}
1.1
jbosstest/src/main/org/jboss/test/jbossmx/compliance/standard/support/StandardParentMBean.java
Index: StandardParentMBean.java
===================================================================
/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.test.jbossmx.compliance.standard.support;
public interface StandardParentMBean
{
void setParentValue(String value);
void setAvailable(boolean available);
}
1.1
jbosstest/src/main/org/jboss/test/jbossmx/compliance/standard/support/Torture.java
Index: Torture.java
===================================================================
/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.test.jbossmx.compliance.standard.support;
/**
* @author <a href="mailto:[EMAIL PROTECTED]">Trevor Squires</a>.
*/
public class Torture implements TortureMBean
{
public Torture()
{
}
public Torture(String[][] something)
{
}
Torture(int foo)
{
}
protected Torture(String wibble)
{
}
private Torture(double trouble)
{
}
public String getNiceString()
{
return null;
}
public void setNiceString(String nice)
{
}
public boolean isNiceBoolean()
{
return false;
}
public void setNiceBoolean(boolean nice)
{
}
public void setInt(int foo)
{
}
public void setIntArray(int[] foo)
{
}
public void setNestedIntArray(int[][][] foo)
{
}
public void setInteger(Integer foo)
{
}
public void setIntegerArray(Integer[] foo)
{
}
public void setNestedIntegerArray(Integer[][][] foo)
{
}
public int getMyinteger()
{
return 0;
}
public int[] getMyintegerArray()
{
return new int[0];
}
public int[][][] getMyNestedintegerArray()
{
return new int[0][][];
}
public Integer getMyInteger()
{
return null;
}
public Integer[] getMyIntegerArray()
{
return new Integer[0];
}
public Integer[][][] getMyNestedIntegerArray()
{
return new Integer[0][][];
}
// these should give an isIs right?
public boolean isready()
{
return false;
}
public Boolean isReady()
{
return null;
}
// these should be operations
public boolean ispeachy(int peachy)
{
return false;
}
public Boolean isPeachy(int peachy)
{
return null;
}
public String issuer()
{
return null;
}
public int settlement(String thing)
{
return 0;
}
public void setMulti(String foo, Integer bar)
{
}
public String getResult(String source)
{
return null;
}
public void setNothing()
{
}
public void getNothing()
{
}
// ok, we have an attribute called Something
// and an operation called getSomething...
public void setSomething(String something)
{
}
public void getSomething()
{
}
// ooh yesssss
public String[][] doSomethingCrazy(Object[] args, String[] foo, int[][][]
goMental)
{
return new String[0][];
}
}
1.1
jbosstest/src/main/org/jboss/test/jbossmx/compliance/standard/support/TortureMBean.java
Index: TortureMBean.java
===================================================================
/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.test.jbossmx.compliance.standard.support;
/**
* @author <a href="mailto:[EMAIL PROTECTED]">Trevor Squires</a>.
*/
public interface TortureMBean
{
String getNiceString();
void setNiceString(String nice);
boolean isNiceBoolean();
void setNiceBoolean(boolean nice);
void setInt(int foo);
void setIntArray(int[] foo);
void setNestedIntArray(int[][][] foo);
void setInteger(Integer foo);
void setIntegerArray(Integer[] foo);
void setNestedIntegerArray(Integer[][][] foo);
int getMyinteger();
int[] getMyintegerArray();
int[][][] getMyNestedintegerArray();
Integer getMyInteger();
Integer[] getMyIntegerArray();
Integer[][][] getMyNestedIntegerArray();
// these should give an isIs right?
boolean isready();
Boolean isReady();
// these should be operations
boolean ispeachy(int peachy);
Boolean isPeachy(int peachy);
String issuer();
int settlement(String thing);
void setMulti(String foo, Integer bar);
String getResult(String source);
void setNothing();
void getNothing();
// ok, we have an attribute called Something
// and an operation called getSomething...
void setSomething(String something);
void getSomething();
// ooh yesssss
String[][] doSomethingCrazy(Object[] args, String[] foo, int[][][] goMental);
}
1.1
jbosstest/src/main/org/jboss/test/jbossmx/compliance/standard/support/Trivial.java
Index: Trivial.java
===================================================================
/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.test.jbossmx.compliance.standard.support;
public class Trivial implements TrivialMBean
{
private String something = null;
private boolean anAttribute = true;
public void setSomething(String thing)
{
this.something = thing;
}
public String getSomething()
{
return something;
}
public void doOperation(String arg)
{
}
}
1.1
jbosstest/src/main/org/jboss/test/jbossmx/compliance/standard/support/TrivialMBean.java
Index: TrivialMBean.java
===================================================================
/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.test.jbossmx.compliance.standard.support;
public interface TrivialMBean
{
void setSomething(String thing);
String getSomething();
void doOperation(String arg);
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development