Examples of find()


Examples of org.apache.xbean.osgi.bundle.util.BundleClassFinder.find()

                        @Override
                        public boolean rangeDiscoveryRequired(DiscoveryRange discoveryRange) {
                            return discoveryRange == DiscoveryRange.BUNDLE_CLASSPATH;
                        }
                    });
                    classNames = bundleClassFinder.find();
                    packageClassNamesMap.put(packageName, classNames);
                }
            }
        }
        ArrayList clses = new ArrayList<Class>(classNames.size());
View Full Code Here

Examples of org.apache.xbean.osgi.bundle.util.BundleResourceFinder.find()

    }

    public BundleAnnotationFinder(PackageAdmin packageAdmin, Bundle bundle, ResourceDiscoveryFilter discoveryFilter, Set<String> paths) throws Exception {
        this.bundle = BundleUtils.unwrapBundle(bundle);
        BundleResourceFinder bundleResourceFinder = new BundleResourceFinder(packageAdmin, this.bundle, "", ".class", discoveryFilter);
        bundleResourceFinder.find(new AnnotationFindingCallback());
        this.paths = paths;
    }

    @Override
    protected URL getResource(String s) {
View Full Code Here

Examples of org.auraframework.impl.root.RootDefFactory.find()

        List<SourceLoader> loaders = Lists.newArrayList((SourceLoader) loader);
        RootDefFactory factory = new RootDefFactory(new SourceFactory(loaders));

        assertTrue("RootDefFactory should have a find() method", factory.hasFind());
        assertTrue("find() not finding all sources",
                factory.find(new DescriptorFilter(String.format("markup://%s:*", namespace))).size() == 3);
        assertEquals("find() fails with wildcard as prefix", 1,
                factory.find(new DescriptorFilter("*://" + houseboat.getDescriptorName())).size());
        assertEquals("find() fails with wildcard as namespace", 1,
                factory.find(new DescriptorFilter("markup://*:" + houseboat.getName())).size());
        assertEquals("find() fails with wildcard as name", 1,
View Full Code Here

Examples of org.auraframework.service.DefinitionService.find()

    private <T extends Definition> void populate(Map<DefDescriptor<?>, Map<String, String>> unused,
            Set<DefDescriptor<?>> used, Class<T> type) throws QuickFixException {

        DefinitionService definitionService = Aura.getDefinitionService();
        DefDescriptor<T> matcher = definitionService.getDefDescriptor("markup://*:*", type);
        Set<DefDescriptor<T>> descriptors = definitionService.find(matcher);

        for (DefDescriptor<T> desc : descriptors) {
            Map<String, String> values = Maps.newHashMap();
            values.put("name", desc.getDescriptorName());

View Full Code Here

Examples of org.auraframework.system.MasterDefRegistry.find()

        Map<DefDescriptor<?>, Definition> filtered;
        Set<String> namespaces = Sets.newHashSet(namespace);
        //
        // Fetch all matching descriptors for our 'root' definitions.
        //
        descriptors = mdr.find(root_nsf);
        // HACK! this should go away with: W-2368045
        descriptors.add(Aura.getDefinitionService().getDefDescriptor("markup://"+namespace, NamespaceDef.class));
        for (DefDescriptor<?> desc : descriptors) {
            Definition def = null;
            try {
View Full Code Here

Examples of org.auraframework.system.SourceLoader.find()

        LoaderKey key = new LoaderKey(namespace, prefix);
        SourceLoader loader = loaders.get(key);
        if (loader == null) {
            throw new AuraRuntimeException(String.format("Loader not found for %s", key));
        }
        return loader.find(primaryInterface, prefix, namespace);
    }

    private static class LoaderKey {
        private final String namespace;
        private final String prefix;
View Full Code Here

Examples of org.candlepin.controller.PoolManager.find()

        Pool p = genPool();
        p.setProductAttribute("multi-entitlement", "no", "id");
        PoolManager poolManager = mock(PoolManager.class);

        when(akc.verifyAndLookupKey(eq("testKey"))).thenReturn(ak);
        when(poolManager.find(eq("testPool"))).thenReturn(p);

        ActivationKeyResource akr = new ActivationKeyResource(
            akc, i18n, poolManager, serviceLevelValidator, activationKeyRules, null);
        akr.addPoolToKey("testKey", "testPool", 2L);
    }
View Full Code Here

Examples of org.candlepin.model.CertificateSerialCurator.find()

    @Test
    public void getSerial() {
        CertificateSerialCurator csc = mock(CertificateSerialCurator.class);
        CertificateSerialResource csr = new CertificateSerialResource(csc);
        CertificateSerial cs = mock(CertificateSerial.class);
        when(csc.find(10L)).thenReturn(cs);
        assertEquals(cs, csr.getCertificateSerial(10L));
    }
}
View Full Code Here

Examples of org.candlepin.model.EntitlementCurator.find()

        Consumer consumer = createConsumer();
        ConsumerCurator consumerCurator = mock(ConsumerCurator.class);
        when(consumerCurator.verifyAndLookupConsumer(eq("fake uuid"))).thenReturn(consumer);

        EntitlementCurator entitlementCurator = mock(EntitlementCurator.class);
        when(entitlementCurator.find(any(Serializable.class))).thenReturn(null);

        ConsumerResource consumerResource = new ConsumerResource(consumerCurator, null,
            null, null, entitlementCurator, null, null, i18n, null, null, null,
            null, null, null, null, null, null, null, null, null, null, null,
            null, new CandlepinCommonTestConfig(), null, null, null, consumerBindUtil);
View Full Code Here

Examples of org.castor.persist.proxy.RelationCollection.find()

                // if ( fieldMolder.isDependent() ) {
                Iterator itor = deleted.iterator();
                while (itor.hasNext()) {
                    flags.setUpdateCache(true);
                    Object toBeDeleted = lazy.find(itor.next());
                    if (toBeDeleted != null && tx.isPersistent(toBeDeleted)) {
                        if (_fieldMolder.isDependent()) {
                            tx.delete(toBeDeleted);
                        } else {
                            fieldClassMolder.removeRelation(tx, toBeDeleted,
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.