This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
jmxutils /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Tue Sep 29 22:45:15 -0700 2009 | |
| |
README.md | Fri Oct 02 16:49:07 -0700 2009 | |
| |
jmxutils.iml | Fri Oct 09 09:16:47 -0700 2009 | |
| |
jmxutils.ipr | Fri Oct 09 09:16:47 -0700 2009 | |
| |
pom.xml | Sun Nov 01 21:55:50 -0800 2009 | |
| |
src/ | Mon Nov 02 11:58:21 -0800 2009 |
README.md
Example
class ManagedObject
{
@Managed
public int getValue()
{
...
}
@Managed
public void setValue(int value)
{
...
}
@Managed(description="do the operation")
public void operation()
{
...
}
}
...
MBeanExporter exporter = new MBeanExporter(ManagementFactory.getPlatformMBeanServer());
exporter.export("test:name=X", new ManagedObject());
Guice support
Injector injector = Guice.createInjector(
new MBeanModule() {
@Override
protected void configureMBeans()
{
export(ManagedObject.class).as("test:name=X");
export(ManagedObject.class).annotatedWith(SomeAnnotation.class).as("test:name=Y");
}
}, ...);
License
Licensed under the Apache License, Version 2.0 (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.







