Package org.apache.maven.index.context

Examples of org.apache.maven.index.context.IndexCreator


    }

    private IndexingContext newTestContext( final File basedir, final String baseUrl )
        throws IOException, UnsupportedExistingLuceneIndexException, ComponentLookupException
    {
        IndexCreator min = container.lookup( IndexCreator.class, "min" );
        IndexCreator jar = container.lookup( IndexCreator.class, "jarContent" );

        List<IndexCreator> creators = new ArrayList<IndexCreator>();
        creators.add( min );
        creators.add( jar );
View Full Code Here


        DEFAULT_CREATORS = new ArrayList<IndexCreator>();
        FULL_CREATORS = new ArrayList<IndexCreator>();
        MIN_CREATORS = new ArrayList<IndexCreator>();

        IndexCreator min = lookup( IndexCreator.class, MinimalArtifactInfoIndexCreator.ID );
        IndexCreator mavenPlugin = lookup( IndexCreator.class, MavenPluginArtifactInfoIndexCreator.ID );
        IndexCreator mavenArchetype = lookup( IndexCreator.class, MavenArchetypeArtifactInfoIndexCreator.ID );
        IndexCreator jar = lookup( IndexCreator.class, JarFileContentsIndexCreator.ID );

        MIN_CREATORS.add( min );

        DEFAULT_CREATORS.add( min );
        DEFAULT_CREATORS.add( mavenPlugin );
View Full Code Here

        basedir.mkdirs();

        PlexusContainer container = new DefaultPlexusContainer();

        IndexCreator min = container.lookup( IndexCreator.class, "min" );
        IndexCreator jar = container.lookup( IndexCreator.class, "jarContent" );

        List<IndexCreator> creators = new ArrayList<IndexCreator>();
        creators.add( min );
        creators.add( jar );
View Full Code Here

            final ArrayList<IndexCreator> sortedCreators = new ArrayList<IndexCreator>( creators.size() );

            for ( String id : sortedIds )
            {
                final IndexCreator creator = creatorsById.get( id );

                if ( creator != null )
                {
                    sortedCreators.add( creator );
                }
View Full Code Here

  protected void hackContext(DefaultIndexingContext context)
      throws Exception
  {
    List<IndexCreator> creators = new ArrayList<IndexCreator>();

    IndexCreator min = lookup(IndexCreator.class, MinimalArtifactInfoIndexCreator.ID);
    IndexCreator mavenPlugin = lookup(IndexCreator.class, MavenPluginArtifactInfoIndexCreator.ID);
    IndexCreator mavenArchetype = lookup(IndexCreator.class, MavenArchetypeArtifactInfoIndexCreator.ID);
    IndexCreator jar = lookup(IndexCreator.class, JarFileContentsIndexCreator.ID);

    creators.add(min);
    creators.add(mavenPlugin);
    creators.add(mavenArchetype);
    creators.add(jar);
View Full Code Here

  private List<IndexCreator> m_minCreators = new ArrayList<IndexCreator>();

  public IndexCreatorHelper(PlexusContainer testCaseContainer)
      throws ComponentLookupException
  {
    IndexCreator min = testCaseContainer.lookup(IndexCreator.class, "min");
    IndexCreator jar = testCaseContainer.lookup(IndexCreator.class, "jarContent");

    m_minCreators.add(min);

    m_fullCreators.add(min);
    m_fullCreators.add(jar);
View Full Code Here

  {
    super.setUp();

    DEFAULT_CREATORS = new ArrayList<IndexCreator>();

    IndexCreator min = lookup(IndexCreator.class, MinimalArtifactInfoIndexCreator.ID);
    IndexCreator mavenPlugin = lookup(IndexCreator.class, MavenPluginArtifactInfoIndexCreator.ID);
    IndexCreator mavenArchetype = lookup(IndexCreator.class, MavenArchetypeArtifactInfoIndexCreator.ID);

    DEFAULT_CREATORS.add(min);
    DEFAULT_CREATORS.add(mavenPlugin);
    DEFAULT_CREATORS.add(mavenArchetype);
View Full Code Here

TOP

Related Classes of org.apache.maven.index.context.IndexCreator

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.