View Javadoc
1   package org.codehaus.plexus.component.factory.nonjava;
2   
3   import org.codehaus.plexus.component.factory.ComponentFactory;
4   import org.codehaus.plexus.component.factory.ComponentInstantiationException;
5   import org.codehaus.plexus.component.repository.ComponentDescriptor;
6   import org.codehaus.plexus.classworlds.realm.ClassRealm;
7   import org.codehaus.plexus.PlexusContainer;
8   
9   /** @author Jason van Zyl */
10  public class NonJavaComponentFactory
11      implements ComponentFactory
12  {
13      public String getId()
14      {
15          return "nonjava";
16      }
17  
18      public Object newInstance( ComponentDescriptor componentDescriptor,
19                                 ClassRealm classRealm,
20                                 PlexusContainer container )
21          throws ComponentInstantiationException
22      {
23          return "component";
24      }
25  }