Examples of MojoAnnotationVisitor


Examples of org.apache.maven.tools.plugin.annotations.scanner.visitors.MojoAnnotationVisitor

        final MojoAnnotatedClass mojoAnnotatedClass = mojoClassVisitor.getMojoAnnotatedClass();

        try
        {
            // @Mojo annotation
            MojoAnnotationVisitor mojoAnnotationVisitor = mojoClassVisitor.getAnnotationVisitor( Mojo.class );
            if ( mojoAnnotationVisitor != null )
            {
                MojoAnnotationContent mojoAnnotationContent = new MojoAnnotationContent();
                populateAnnotationContent( mojoAnnotationContent, mojoAnnotationVisitor );
                mojoAnnotatedClass.setMojo( mojoAnnotationContent );
View Full Code Here

Examples of org.apache.maven.tools.plugin.annotations.scanner.visitors.MojoAnnotationVisitor

        throws ExtractionException
    {

        try
        {
            MojoAnnotationVisitor mojoAnnotationVisitor =
                mojoClassVisitor.getAnnotationVisitorMap().get( Mojo.class.getName() );
            if ( mojoAnnotationVisitor != null )
            {
                MojoAnnotationContent mojoAnnotationContent = new MojoAnnotationContent();
                for ( Map.Entry<String, Object> entry : mojoAnnotationVisitor.getAnnotationValues().entrySet() )
                {
                    reflector.invoke( mojoAnnotationContent, entry.getKey(), new Object[]{ entry.getValue() } );
                }
                mojoClassVisitor.getMojoAnnotatedClass().setMojo( mojoAnnotationContent );
            }

            mojoAnnotationVisitor = mojoClassVisitor.getAnnotationVisitorMap().get( Execute.class.getName() );
            if ( mojoAnnotationVisitor != null )
            {
                ExecuteAnnotationContent executeAnnotationContent = new ExecuteAnnotationContent();

                for ( Map.Entry<String, Object> entry : mojoAnnotationVisitor.getAnnotationValues().entrySet() )
                {
                    reflector.invoke( executeAnnotationContent, entry.getKey(), new Object[]{ entry.getValue() } );
                }
                mojoClassVisitor.getMojoAnnotatedClass().setExecute( executeAnnotationContent );
            }
View Full Code Here

Examples of org.apache.maven.tools.plugin.annotations.scanner.visitors.MojoAnnotationVisitor

        throws ExtractionException
    {

        try
        {
            MojoAnnotationVisitor mojoAnnotationVisitor =
                mojoClassVisitor.getAnnotationVisitorMap().get( Mojo.class.getName() );
            if ( mojoAnnotationVisitor != null )
            {
                MojoAnnotationContent mojoAnnotationContent = new MojoAnnotationContent();
                for ( Map.Entry<String, Object> entry : mojoAnnotationVisitor.getAnnotationValues().entrySet() )
                {
                    reflector.invoke( mojoAnnotationContent, entry.getKey(), new Object[]{ entry.getValue() } );
                }
                mojoClassVisitor.getMojoAnnotatedClass().setMojo( mojoAnnotationContent );
            }

            mojoAnnotationVisitor = mojoClassVisitor.getAnnotationVisitorMap().get( Execute.class.getName() );
            if ( mojoAnnotationVisitor != null )
            {
                ExecuteAnnotationContent executeAnnotationContent = new ExecuteAnnotationContent();

                for ( Map.Entry<String, Object> entry : mojoAnnotationVisitor.getAnnotationValues().entrySet() )
                {
                    reflector.invoke( executeAnnotationContent, entry.getKey(), new Object[]{ entry.getValue() } );
                }
                mojoClassVisitor.getMojoAnnotatedClass().setExecute( executeAnnotationContent );
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.