org.oddjob.jmx.server
Class AccumulatingFactoryProvider

java.lang.Object
  extended by org.oddjob.jmx.server.AccumulatingFactoryProvider
All Implemented Interfaces:
HandlerFactoryProvider

public class AccumulatingFactoryProvider
extends Object
implements HandlerFactoryProvider

An HandlerFactoryProvider that provides s by accumulating other ServerHandlerProviders.

Author:
rob

Constructor Summary
AccumulatingFactoryProvider()
           
 
Method Summary
 void addProvider(HandlerFactoryProvider provider)
          Add a provider.
 ServerInterfaceHandlerFactory<?,?>[] getHandlerFactories()
          Provide the factories.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccumulatingFactoryProvider

public AccumulatingFactoryProvider()
Method Detail

addProvider

public void addProvider(HandlerFactoryProvider provider)
Add a provider.

Parameters:
provider -

getHandlerFactories

public ServerInterfaceHandlerFactory<?,?>[] getHandlerFactories()
Description copied from interface: HandlerFactoryProvider
Provide the factories.

Specified by:
getHandlerFactories in interface HandlerFactoryProvider
Returns:
Array of factories. Never null;