All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.artemis.generator.collect.AbstractClassCollectStrategy Maven / Gradle / Ivy

There is a newer version: 2.3.0
Show newest version
package com.artemis.generator.collect;

import com.artemis.Component;
import com.artemis.generator.strategy.e.FieldProxyStrategy;

import java.net.URL;
import java.util.Collection;
import java.util.Set;

/**
 * Collector for classes on classpath.
 *
 * @author Daan van Yperen
 */
public abstract class AbstractClassCollectStrategy {

    private final Set urls;

    /**
     * @param urls locations to search.
     */
    AbstractClassCollectStrategy(Set urls) {
        this.urls = urls;
    }

    /**
     * Collect all components within a set of URLs
     * @return Set of all components on classloader.
     */
    public abstract Collection> allComponents();

    /**
     * Collect all components within a set of URLs
     * @return Set of all components on classloader.
     */
    public abstract Collection> allFieldProxyStrategies();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy