Examples of discoverResources()


Examples of org.apache.felix.bundlerepository.RepositoryAdmin.discoverResources()

                        .put( "lastModified", repositories[i].getLastModified() ) //$NON-NLS-1$
                        .put( "name", repositories[i].getName() ) //$NON-NLS-1$
                        .put( "url", repositories[i].getURI() ) ); //$NON-NLS-1$
                }

                Resource[] resources = admin.discoverResources( filter );
                for ( int i = 0; resources != null && i < resources.length; i++ )
                {
                    json.append( "resources", toJSON( resources[i], bundles, details ) ); //$NON-NLS-1$
                }
View Full Code Here

Examples of org.apache.felix.bundlerepository.RepositoryAdmin.discoverResources()

                {
                    continue;
                }

                String filter = "(id=" + bundle + ")";
                Resource[] resources = repoAdmin.discoverResources( filter );
                if ( resources != null && resources.length > 0 )
                {
                    resolver.add( resources[0] );
                }
            }
View Full Code Here

Examples of org.apache.felix.bundlerepository.RepositoryAdmin.discoverResources()

            sb.append("*)(symbolicname=*");
            sb.append(value);
            sb.append("*))");
        }
        // Use filter to get matching resources.
        Resource[] resources = ra.discoverResources(sb.toString());

        // Group the resources by symbolic name in descending version order,
        // but keep them in overall sorted order by presentation name.
        Map revisionMap = new TreeMap(new Comparator() {
            public int compare(Object o1, Object o2)
View Full Code Here

Examples of org.apache.felix.bundlerepository.RepositoryAdmin.discoverResources()

   
    Resource[] resources = new Resource[] {
      createResource("My bundle", "my.bundle", "1.0.0"),
      createResource("My other Bundle", "org.apache.mybundle", "2.0.1")
    };
    EasyMock.expect(repoAdmin.discoverResources("(|(presentationname=*)(symbolicname=*))")).
      andReturn(resources);
   
    control.replay();
    command.execute(null);
    control.verify();
 
View Full Code Here

Examples of org.apache.felix.bundlerepository.RepositoryAdmin.discoverResources()

                        }
                    }
                    bundleContext.ungetService(caveRepositoryServiceReference);
                }
            } else {
                Resource[] resources = repositoryAdmin.discoverResources("(uri=*" + uri + ")");
                if (resources.length == 0) {
                    throw new ServletException("No resource found with URI " + uri);
                }
                if (resources.length > 1) {
                    throw new ServletException("Multiple resources found with URI " + uri);
View Full Code Here

Examples of org.jboss.on.embedded.manager.ResourceManager.discoverResources()

        PC.setConfiguration(pcConfig);
        PC.initialize();

        ResourceManager resourceManager = ResourceManagerFactory.resourceManager();
        resourceManager.discoverResources();
        LOG.info("Successfully initialized Plugin Container");
    }

    protected String getScenario()
    {
View Full Code Here

Examples of org.jboss.on.embedded.manager.ResourceManager.discoverResources()

            LOG.info("Loaded Plugin: " + pluginEnvironment.getPluginName());
        }

        LOG.info("Discovering Services");
        ResourceManager resourceManager = ResourceManagerFactory.resourceManager();
        resourceManager.discoverResources();

        LOG.info("===============================================");
    }
}
View Full Code Here

Examples of org.osgi.service.obr.RepositoryAdmin.discoverResources()

                        .put( "lastModified", repositories[i].getLastModified() ) //$NON-NLS-1$
                        .put( "name", repositories[i].getName() ) //$NON-NLS-1$
                        .put( "url", repositories[i].getURL() ) ); //$NON-NLS-1$
                }

                Resource[] resources = admin.discoverResources( filter );
                for ( int i = 0; resources != null && i < resources.length; i++ )
                {
                    json.append( "resources", toJSON( resources[i], bundles, details ) ); //$NON-NLS-1$
                }
            }
View Full Code Here

Examples of org.osgi.service.obr.RepositoryAdmin.discoverResources()

            {
                continue;
            }

            String filter = "(id=" + bundle + ")";
            Resource[] resources = repoAdmin.discoverResources( filter );
            if ( resources != null && resources.length > 0 )
            {
                resolver.add( resources[0] );
            }
        }
View Full Code Here

Examples of org.osgi.service.obr.RepositoryAdmin.discoverResources()

                version = "0.0.0";
            }
            final String filter = "(&(symbolicname=" + bundle.getSymbolicName() + ")(!(version=" + version
                + "))(version>=" + version + "))";

            final Resource[] resources = ra.discoverResources( filter );
            final Resource resource = selectHighestVersion( resources );
            if ( resource != null )
            {
                resolver.add( resource );
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.