Package org.apache.maven.doxia.macro

Examples of org.apache.maven.doxia.macro.Macro


    @Override
    public void executeMacro( String macroId, MacroRequest request, Sink sink )
    throws MacroExecutionException, MacroNotFoundException
    {
        Macro m = macroProvider.resolveMacro(macroId);
        if(m == null) {
            m = new DefaultMacro(macroId);
        }
        m.execute( sink, request );
    }
View Full Code Here


    /** {@inheritDoc} */
    public Macro getMacro( String id )
        throws MacroNotFoundException
    {
        Macro macro = macros.get( id );

        if ( macro == null )
        {
            throw new MacroNotFoundException( "Cannot find macro with id = " + id );
        }
View Full Code Here

    // Made public right now because of the structure of the APT parser and
    // all its inner classes.
    public void executeMacro( String macroId, MacroRequest request, Sink sink )
        throws MacroExecutionException, MacroNotFoundException
    {
        Macro macro = getMacroManager().getMacro( macroId );

        macro.enableLogging( getLog() );

        macro.execute( sink, request );
    }
View Full Code Here

    {
        MacroManager mm = (MacroManager) lookup( MacroManager.ROLE );

        assertNotNull( mm );

        Macro macro = mm.getMacro( "snippet" );
        assertNotNull( macro );

        try
        {
            macro = mm.getMacro( "weirdId" );
View Full Code Here

    // Made public right now because of the structure of the APT parser and
    // all its inner classes.
    public void executeMacro( String macroId, MacroRequest request, Sink sink )
        throws MacroExecutionException, MacroNotFoundException
    {
        Macro macro = getMacroManager().getMacro( macroId );

        macro.enableLogging( getLog() );

        macro.execute( sink, request );
    }
View Full Code Here

TOP

Related Classes of org.apache.maven.doxia.macro.Macro

Copyright © 2018 www.massapicom. 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.