Examples of IBundleRepository


Examples of org.apache.felix.sigil.common.repository.IBundleRepository

                return false;
            }

            public Object[] getElements(Object inputElement)
            {
                IBundleRepository rep = (IBundleRepository) inputElement;
                IRepositoryModel model = SigilCore.getRepositoryModel(rep);
                if ( model.getProblem() == null ) {
                    return getBundles(rep);
                }
                else {
View Full Code Here

Examples of org.apache.felix.sigil.common.repository.IBundleRepository

        tableViewer = new TableViewer(table);
        tableViewer.setContentProvider(new DefaultTableProvider() {

            public Object[] getElements(Object inputElement)
            {
                IBundleRepository rep = (IBundleRepository) inputElement;
                IRepositoryModel model = SigilCore.getRepositoryModel(rep);
                return toArray(model.getProperties().entrySet());
            }           
        });
               
View Full Code Here

Examples of org.apache.felix.sigil.common.repository.IBundleRepository

            RepositoryStore cache = get(uid);

            if (cache == null || !cache.pref.equals(pref))
            {
                IBundleRepository repo = provider.createRepository(uid, pref);
                cache = new RepositoryStore(pref, repo);
                put(uid, cache);
            }

            return cache.repo;
View Full Code Here

Examples of org.apache.felix.sigil.common.repository.IBundleRepository

    /* (non-Javadoc)
     * @see org.apache.felix.sigil.common.repository.IBundleRepository#accept(org.apache.felix.sigil.common.repository.IRepositoryVisitor, int)
     */
    public void accept(IRepositoryVisitor visitor, int options)
    {
        IBundleRepository delegate = getDelegate();
        if ( delegate != null ) {
            delegate.accept(visitor, options);
        }
    }
View Full Code Here

Examples of org.apache.felix.sigil.common.repository.IBundleRepository

    /* (non-Javadoc)
     * @see org.apache.felix.sigil.common.repository.IBundleRepository#addBundleRepositoryListener(org.apache.felix.sigil.common.repository.IBundleRepositoryListener)
     */
    public synchronized void addBundleRepositoryListener(IBundleRepositoryListener listener)
    {
        IBundleRepository delegate = getDelegate();
        if ( delegate != null ) {
            delegate.addBundleRepositoryListener(listener);
        }
        else {
            listeners.add(listener);
        }
    }
View Full Code Here

Examples of org.apache.felix.sigil.common.repository.IBundleRepository

    /* (non-Javadoc)
     * @see org.apache.felix.sigil.common.repository.IBundleRepository#removeBundleRepositoryListener(org.apache.felix.sigil.common.repository.IBundleRepositoryListener)
     */
    public synchronized void removeBundleRepositoryListener(IBundleRepositoryListener listener)
    {
        IBundleRepository delegate = getDelegate();
        if ( delegate != null ) {
            delegate.removeBundleRepositoryListener(listener);
        }
        else {
            listeners.remove(listener);
        }
    }   
View Full Code Here

Examples of org.apache.felix.sigil.common.repository.IBundleRepository

    /* (non-Javadoc)
     * @see org.apache.felix.sigil.common.repository.IBundleRepository#refresh()
     */
    public void refresh()
    {
        IBundleRepository delegate = getDelegate();
        if ( delegate == null ) {
            exception = null;
            getDelegate();
        }
        else {
            delegate.refresh();
        }
    }
View Full Code Here

Examples of org.apache.felix.sigil.common.repository.IBundleRepository

    class RefreshAction extends Action
    {
        @Override
        public void run()
        {
            IBundleRepository rep = (IBundleRepository) treeViewer.getInput();
            if (rep != null)
            {
                new RefreshRepositoryAction(rep).run();
            }
        }
View Full Code Here

Examples of org.apache.felix.sigil.common.repository.IBundleRepository

                scanRepositories(subpath, list);
            }
            else {
                Properties props = getConfig().getRepositoryConfig(name);
                if (props != null) {
                    IBundleRepository repo = buildRepository(name, props);
                   
                    if ( repo != null ) {
                        list.add(repo);
                    }
                }
View Full Code Here

Examples of org.apache.felix.sigil.common.repository.IBundleRepository

        }

        try
        {
            IRepositoryProvider instance = (IRepositoryProvider) (Class.forName(provider).newInstance());
            IBundleRepository repository = instance.createRepository(name, repo);
            return repository;
        }
        catch (Exception e)
        {
            String msg = "failed to create repository: ";
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.