Romain Manni-Bucau created DELTASPIKE-300:
---------------------------------------------
Summary: Basic MBean API/Extension to link CDI to JMX
Key: DELTASPIKE-300
URL: https://issues.apache.org/jira/browse/DELTASPIKE-300
Project: DeltaSpike
Issue Type: Bug
Reporter: Romain Manni-Bucau
Assignee: Romain Manni-Bucau
Fix For: 0.4-incubating
The idea is basically to be able to push a MBean froma CDI bean:
{code}
@MBean
@Description("my mbean")
@ApplicationScoped
public static class MyMBean
{
private int counter = 0;
@ManagedAttribute
@Description("get counter")
public int getCounter()
{
return counter;
}
@ManagedAttribute
@Description("set counter")
public void setCounter(final int counter)
{
this.counter = counter;
}
public void resetTo(final int value)
{
counter = value;
}
@ManagedOperation
@Description("multiply counter")
public int multiply(final int n)
{
return counter * n;
}
}
{code}
This jira is only for an initial version.
Next steps and discussion will be done on other jira.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira