Java 类org.apache.camel.spi.ManagementMBeanAssembler 实例源码

项目:Camel    文件:DefaultManagementAgent.java   
public void register(Object obj, ObjectName name, boolean forceRegistration) throws JMException {
    try {
        registerMBeanWithServer(obj, name, forceRegistration);
    } catch (NotCompliantMBeanException e) {
        // If this is not a "normal" MBean, then try to deploy it using JMX annotations
        ManagementMBeanAssembler assembler = camelContext.getManagementMBeanAssembler();
        ObjectHelper.notNull(assembler, "ManagementMBeanAssembler", camelContext);
        Object mbean = assembler.assemble(server, obj, name);
        if (mbean != null) {
            // and register the mbean
            registerMBeanWithServer(mbean, name, forceRegistration);
        }
    }
}
项目:Camel    文件:DefaultCamelContext.java   
public ManagementMBeanAssembler getManagementMBeanAssembler() {
    return managementMBeanAssembler;
}
项目:Camel    文件:DefaultCamelContext.java   
public void setManagementMBeanAssembler(ManagementMBeanAssembler managementMBeanAssembler) {
    this.managementMBeanAssembler = managementMBeanAssembler;
}
项目:Camel    文件:DefaultCamelContext.java   
/**
 * Lazily create a default implementation
 */
protected ManagementMBeanAssembler createManagementMBeanAssembler() {
    return new DefaultManagementMBeanAssembler(this);
}
项目:Camel    文件:SpringCamelContext.java   
@Override
protected ManagementMBeanAssembler createManagementMBeanAssembler() {
    // use a spring mbean assembler
    return new SpringManagementMBeanAssembler(this);
}
项目:microservice-bundle    文件:ManagedCamelContext.java   
@Override
public ManagementMBeanAssembler getManagementMBeanAssembler() {
  return context.getManagementMBeanAssembler();
}
项目:dropwizard-camel    文件:ManagedCamelContext.java   
@Override
public ManagementMBeanAssembler getManagementMBeanAssembler() {
    return context.getManagementMBeanAssembler();
}
项目:Camel    文件:CamelContext.java   
/**
 * Returns the management mbean assembler
 *
 * @return the mbean assembler
 */
ManagementMBeanAssembler getManagementMBeanAssembler();