KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > maven > script > ant > AntMojoComponentFactory


1 package org.apache.maven.script.ant;
2
3 import org.codehaus.classworlds.ClassRealm;
4 import org.codehaus.plexus.PlexusContainer;
5 import org.codehaus.plexus.component.factory.ComponentInstantiationException;
6 import org.codehaus.plexus.component.factory.ant.AntComponentFactory;
7 import org.codehaus.plexus.component.factory.ant.AntScriptInvoker;
8 import org.codehaus.plexus.component.repository.ComponentDescriptor;
9
10 public class AntMojoComponentFactory
11     extends AntComponentFactory
12 {
13
14     public Object JavaDoc newInstance( ComponentDescriptor descriptor, ClassRealm realm, PlexusContainer container )
15         throws ComponentInstantiationException
16     {
17         return new AntMojoWrapper( (AntScriptInvoker) super.newInstance( descriptor, realm, container ) );
18     }
19
20 }
21
Popular Tags