Interface FactoryFinder.ObjectFactory
-
- All Known Implementing Classes:
FactoryFinder.StandaloneObjectFactory
- Enclosing class:
- FactoryFinder
public static interface FactoryFinder.ObjectFactoryThe strategy that the FactoryFinder uses to find load and instantiate Objects can be changed out by calling the setObjectFactory method with a custom implementation of ObjectFactory. The default ObjectFactory is typically changed out when running in a specialized container environment where service discovery needs to be done via the container system. For example, in an OSGi scenario.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objectcreate(java.lang.String path)
-
-
-
Method Detail
-
create
java.lang.Object create(java.lang.String path) throws java.lang.IllegalAccessException, java.lang.InstantiationException, java.io.IOException, java.lang.ClassNotFoundException- Parameters:
path- the full service path- Returns:
- Object
- Throws:
java.lang.IllegalAccessException- illegal accessjava.lang.InstantiationException- on instantiation errorjava.io.IOException- On IO Errorjava.lang.ClassNotFoundException- On class not found error
-
-