org.qi4j.library.jmx
Interface ApplicationManagerService

All Superinterfaces:
Composite, Identity, ServiceComposite
All Known Implementing Classes:
ApplicationManagerService.Mixin

@Mixins(value=ApplicationManagerService.Mixin.class)
@Activators(value=ApplicationManagerService.Activator.class)
public interface ApplicationManagerService
extends ServiceComposite

Expose the Qi4j app as a "tree" of MBeans. Other services should reuse the object names and create nodes under the ones created here. For example:

 Qi4j:application=MyApp,layer=Application,module=MyModule,class=Service,service=MyService
 
is exported by this service, so another exporter showing some aspect related to this service should use this as base for the ObjectName, and add their own properties. Example:
 Qi4j:application=MyApp,layer=Application,module=MyModule,class=Service,service=MyService,name=Configuration
 
Use the following snippet to find the ObjectName of a service with a given identity:
 ObjectName serviceName = Qi4jMBeans.findService(mbeanServer, applicationName, serviceId);
 


Nested Class Summary
static class ApplicationManagerService.Activator
           
static class ApplicationManagerService.ImportedServiceBean
           
static class ApplicationManagerService.LayerBean
           
static class ApplicationManagerService.Mixin
           
static class ApplicationManagerService.ServiceBean
           
 
Nested classes/interfaces inherited from interface org.qi4j.api.entity.Identity
Identity.IdentityMixin
 
Method Summary
 void exportApplicationStructure()
           
 void unexportApplicationStructure()
           
 
Methods inherited from interface org.qi4j.api.entity.Identity
identity
 

Method Detail

exportApplicationStructure

void exportApplicationStructure()
                                throws java.lang.Exception
Throws:
java.lang.Exception

unexportApplicationStructure

void unexportApplicationStructure()
                                  throws java.lang.Exception
Throws:
java.lang.Exception