org.apache.avalon.repository.main
Class AbstractBuilder
java.lang.Object
org.apache.avalon.repository.main.AbstractBuilder
- Direct Known Subclasses:
- DefaultBuilder, DefaultInitialContext
- public abstract class AbstractBuilder
- extends Object
Application and component bootstrapper used to instantiate, and or invoke
Classes and their methods within newly constructed Repository ClassLoaders.
- Version:
- $Revision: 1.4 $
- Author:
- Alex Karasulu, Stephen McConnell
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractBuilder
public AbstractBuilder()
loadFactoryClass
protected Class loadFactoryClass(ClassLoader classloader,
String factory)
throws RepositoryException
- Load a factory class using a supplied classloader and factory classname.
- Parameters:
classloader
- the classloader to load the class fromfactory
- the factory classname
- Returns:
- the factory class
- Throws:
RepositoryException
- if a factory class loading error occurs
createDelegate
protected Factory createDelegate(ClassLoader classloader,
String factory,
InitialContext context)
throws RepositoryException
Create a factory delegate using a supplied class and command line arguemnts.
The implementation will conduct an ordered search for a constructor matching
one of the four standard constructor patterns.
- [FactoryClass]( InitialContext context, ClassLoader loader )
- [FactoryClass]( InitialContext context )
- [FactoryClass]( ClassLoader loader )
- [FactoryClass]( )
- Parameters:
classloader
- the classloaderfactory
- the the factory classnamecontext
- the inital repository context
- Returns:
- the instantiated factory
- Throws:
RepositoryException
- if a factory creation error occurs
Copyright © Apache Software Foundation. All Rights Reserved.