Package net.xeoh.plugins.base.impl.classpath.locator

Examples of net.xeoh.plugins.base.impl.classpath.locator.ClassPathLocator


    /**
     * @param pluginManager
     */
    @SuppressWarnings("synthetic-access")
    public ClassPathManager(PluginManagerImpl pluginManager) {
        this.locator = new ClassPathLocator(pluginManager, this.jarCache);

        // Register loader
        this.pluginLoader.add(new InternalClasspathLoader(pluginManager));
        this.pluginLoader.add(new FileLoader(pluginManager));
        this.pluginLoader.add(new HTTPLoader(pluginManager));
View Full Code Here


     *
     * @param root The top level to start from.
     */
    void locateAllPluginsAt(File root) {
        final ClassPathManager manager = this.pluginManager.getClassPathManager();
        final ClassPathLocator locator = manager.getLocator();

        final Collection<AbstractClassPathLocation> locations = locator.findBelow(root.toURI());
        for (AbstractClassPathLocation location : locations) {
            manager.registerLocation(location);

            Collection<String> subclasses = null;

View Full Code Here

        // Start the classpath search
        this.logger.finer("Starting classpath search with pattern " + pattern);

        // Get all classpath locations of the current classpath
        final ClassPathManager manager = this.pluginManager.getClassPathManager();
        final ClassPathLocator locator = manager.getLocator();
        final Collection<AbstractClassPathLocation> locations = locator.findInCurrentClassPath(options);

        // Process all locations
        for (AbstractClassPathLocation location : locations) {
            manager.registerLocation(location);
View Full Code Here

     *
     * @param projectClasspaths
     * @param target
     */
    public void extractInterfaces(Collection<URI> projectClasspaths, String target) {
        final ClassPathLocator cpl = new ClassPathLocator(null, null);

        final Collection<AbstractClassPathLocation> allLocations = new ArrayList<AbstractClassPathLocation>();

        // Locate all classpath elements
        for (URI uri : projectClasspaths) {
            allLocations.addAll(cpl.findBelow(uri));
        }

        // Get all elements
        for (AbstractClassPathLocation l : allLocations) {
            final Collection<String> cn = l.listAllEntries();
View Full Code Here

     */
    protected PluginManagerImpl(final Properties initialProperties) {

        // TODO: Is getClass().getClassLoader() okay? ... at least the applet seems to need it,
        // but will other apps have problems otherwise?
        this.classPathLocator = new ClassPathLocator(this.jarCache);
        this.classPathManager = new ClassPathManager();

        this.pluginManagerUtil = new PluginManagerUtil(this);
        this.spawner = new Spawner(this);

View Full Code Here

        }
    }

    void locateAllPluginsAt(File root) {
        final ClassPathManager manager = this.pluginManager.getClassPathManager();
        final ClassPathLocator locator = this.pluginManager.getClassPathLocator();

        final Collection<AbstractClassPathLocation> locations = locator.findBelow(root.toURI());
        for (AbstractClassPathLocation location : locations) {
            manager.registerLocation(location);

            Collection<String> subclasses = null;
View Full Code Here

    private void loadAllClasspathPluginClasses() {
        // Start the classpath search
        this.logger.finer("Starting classpath search ...");

        final ClassPathManager manager = this.pluginManager.getClassPathManager();
        final ClassPathLocator locator = this.pluginManager.getClassPathLocator();

        final Collection<AbstractClassPathLocation> locations = locator.findInCurrentClassPath();
        for (AbstractClassPathLocation location : locations) {
            manager.registerLocation(location);

            final Collection<String> candidates = manager.findSubclassesFor(location, Plugin.class);
View Full Code Here

TOP

Related Classes of net.xeoh.plugins.base.impl.classpath.locator.ClassPathLocator

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.