You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2012/12/16 17:10:13 UTC
[jira] [Updated] (DELTASPIKE-300) Basic MBean API/Extension to link
CDI to JMX
[ https://issues.apache.org/jira/browse/DELTASPIKE-300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Romain Manni-Bucau updated DELTASPIKE-300:
------------------------------------------
Description:
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.
was:
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.
> 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