org.eclipse.sisu.space.AbstractSisuIndex Maven / Gradle / Ivy
/*******************************************************************************
* Copyright (c) 2010-present Sonatype, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Stuart McCulloch (Sonatype, Inc.) - initial API and implementation
*******************************************************************************/
package org.eclipse.sisu.space;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.Reader;
import java.io.Writer;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import java.util.TreeSet;
/**
* Skeleton class that generates a qualified class index.
*/
abstract class AbstractSisuIndex
{
// ----------------------------------------------------------------------
// Constants
// ----------------------------------------------------------------------
static final String INDEX_FOLDER = "META-INF/sisu/";
static final String QUALIFIER = "javax.inject.Qualifier";
static final String NAMED = "javax.inject.Named";
// ----------------------------------------------------------------------
// Implementation fields
// ----------------------------------------------------------------------
private final Map