CVS: plexus-container-new/src/java/org/apache/plexus/factory AbstractPlexusFactory.java,NONE,1.1
[email protected] Sun, 27 Apr 2003 15:20:05 -0500
| Newsgroups | gmane.comp.java.plexus.devel |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/plexus/plexus-container-new/src/java/org/apache/plexus/factory
In directory eng.werken.com:/tmp/cvs-serv9114/src/java/org/apache/plexus/factory
Added Files:
AbstractPlexusFactory.java
Log Message:
o Added an abstract factory that will be the basis for allowing pluggable
base entities in Plexus. Currently the logger manager and lifecycle handler
are pluggable.
--- NEW FILE: AbstractPlexusFactory.java ---
package org.apache.plexus.factory;
public class AbstractPlexusFactory
{
protected static Object getInstance( String implementation, ClassLoader classLoader)
throws Exception
{
return classLoader.loadClass( implementation ).newInstance();
}
}