org.apache.activemq.util
Interface FactoryFinder.ObjectFactory

All Known Implementing Classes:
Activator, FactoryFinder.StandaloneObjectFactory
Enclosing class:
FactoryFinder

public static interface FactoryFinder.ObjectFactory

The strategey that the FactoryFinder uses to find load and instanciate Objects can be chagned out by calling the FactoryFinder.setObjectFactory(org.apache.activemq.util.FactoryFinder.ObjectFactory) method with a custom implemenation of ObjectFactory. The default ObjectFactory is typically changed out when running in a specialized container enviorment where service discovery needs to be done via the container system. For example, in an OSGi scenario.


Method Summary
 Object create(String path)
           
 

Method Detail

create

Object create(String path)
              throws IllegalAccessException,
                     InstantiationException,
                     IOException,
                     ClassNotFoundException
Parameters:
path - the full service path
Returns:
Throws:
IllegalAccessException
InstantiationException
IOException
ClassNotFoundException


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.