001/*
002 * Copyright (c) 2006-2011 Nuxeo SA (http://nuxeo.com/) and others.
003 *
004 * All rights reserved. This program and the accompanying materials
005 * are made available under the terms of the Eclipse Public License v1.0
006 * which accompanies this distribution, and is available at
007 * http://www.eclipse.org/legal/epl-v10.html
008 *
009 * Contributors:
010 *     Nuxeo - initial API and implementation
011 *
012 * $Id$
013 */
014package org.nuxeo.ecm.core.management.events;
015
016import org.nuxeo.runtime.management.AbstractResourceFactory;
017import org.nuxeo.runtime.management.ObjectNameFactory;
018
019/**
020 * Factory for Monitoring MBean
021 *
022 * @author Thierry Delprat
023 */
024public class EventMonitoringFactory extends AbstractResourceFactory {
025
026    @Override
027    public void registerResources() {
028        EventMonitoring instance = new EventMonitoring();
029        service.registerResource("EventMonitoring", ObjectNameFactory.formatQualifiedName("EventMonitoring"),
030                EventMonitoringMBean.class, instance);
031    }
032
033}