blob: 53c10785040250966f282a6867e38cde44739a16 [file] [log] [blame]
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* 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.
*/
package org.apache.camel.spi;
/**
* An interface to represent an object being managed.
* <p/>
* This allows you to gain fine grained control of managing objects with Camel.
* For example various Camel components will implement this interface to provide
* management to their endpoints and consumers.
* <p/>
* A popular choice is to use Spring JMX annotations to decorate your object to pinpoint
* the JMX attributes and operations. If you do this then you do <b>not</b> need to use
* this interface. This interface is only if you need to be in full control of the MBean
* and therefore can return a {@link javax.management.MBeanInfo} object.
*
* @version
* @deprecated will be removed in Camel 3.0. Instead use Spring JMX annotations,
* see this <a href="http://camel.apache.org/why-is-my-processor-not-showing-up-in-jconsole.html">FAQ entry</a>
*/
@Deprecated
public interface ManagementAware<T> {
/**
* Gets the managed object
*
* @param object the object to be managed
* @return the managed object
*/
Object getManagedObject(T object);
}