Examples of lookupObject()


Examples of org.mule.api.registry.Registry.lookupObject()

        assertEquals(0, map.size());

        IOException object = r.lookupObject(IOException.class);
        assertNull(object);

        object = r.lookupObject("foooooo");
        assertNull(object);

        Collection<IOException> list = r.lookupObjects(IOException.class);
        assertNotNull(list);
        assertEquals(0, list.size());
View Full Code Here

Examples of org.mule.api.registry.Registry.lookupObject()

        Iterator it = getRegistries().iterator();
        Registry reg;
        while (it.hasNext())
        {
            reg = (Registry) it.next();
            if (!reg.isReadOnly() && reg.lookupObject(key) != null)
            {
                reg.unregisterObject(key, metadata);
                break;
            }
        }
View Full Code Here

Examples of org.mule.api.registry.Registry.lookupObject()

        Registry r = getRegistry();
        Map<String, IOException> map = r.lookupByType(IOException.class);
        assertNotNull(map);
        assertEquals(0, map.size());

        IOException object = r.lookupObject(IOException.class);
        assertNull(object);

        object = r.lookupObject("foooooo");
        assertNull(object);
View Full Code Here

Examples of org.mule.api.registry.Registry.lookupObject()

        assertEquals(0, map.size());

        IOException object = r.lookupObject(IOException.class);
        assertNull(object);

        object = r.lookupObject("foooooo");
        assertNull(object);

        Collection<IOException> list = r.lookupObjects(IOException.class);
        assertNotNull(list);
        assertEquals(0, list.size());
View Full Code Here

Examples of org.mule.api.registry.Registry.lookupObject()

    @Test
    public void testDefaultScope() throws Exception
    {
        Registry registry = muleContext.getRegistry();
       
        Object bean1 = registry.lookupObject("default");
        assertNotNull(bean1);
        String id1 = ((UniqueComponent) bean1).getId();
       
        Object bean2 = registry.lookupObject("default");
        assertNotNull(bean2);
View Full Code Here

Examples of org.mule.api.registry.Registry.lookupObject()

       
        Object bean1 = registry.lookupObject("default");
        assertNotNull(bean1);
        String id1 = ((UniqueComponent) bean1).getId();
       
        Object bean2 = registry.lookupObject("default");
        assertNotNull(bean2);
        String id2 = ((UniqueComponent) bean2).getId();
       
        assertEquals(id1, id2);
    }
View Full Code Here

Examples of org.mule.api.registry.Registry.lookupObject()

    @Test
    public void testSingletonScope() throws Exception
    {
        Registry registry = muleContext.getRegistry();
       
        Object bean1 = registry.lookupObject("singleton");
        assertNotNull(bean1);
        String id1 = ((UniqueComponent) bean1).getId();
       
        Object bean2 = registry.lookupObject("singleton");
        assertNotNull(bean2);
View Full Code Here

Examples of types.Alphabet.lookupObject()

              // if a middle character is labeled "B",
              // update the new end offset, create a token
              // annotation
              // and update the new start offset
              if (labels[j] == labelAlphabet.lookupObject("B")) {

                newEnd = start + j;
                outputAS.add(newStart, newEnd, labelType,
                    features);
                newStart = newEnd;
View Full Code Here

Examples of types.Alphabet.lookupObject()

     
      if (labels.length == tokens.size()) {
       
        for (int i = 0; i < tokens.size(); i++) {
         
          if (labels[i] == labelAlphabet.lookupObject("B-NP")) {
            start = tokens.get(i).getStartNode().getOffset();
            end = tokens.get(i).getEndNode().getOffset();
           
            while ((i + 1 < tokens.size()) &&
                (labels[i + 1] == labelAlphabet.lookupObject("I-NP"))) {
View Full Code Here

Examples of types.Alphabet.lookupObject()

          if (labels[i] == labelAlphabet.lookupObject("B-NP")) {
            start = tokens.get(i).getStartNode().getOffset();
            end = tokens.get(i).getEndNode().getOffset();
           
            while ((i + 1 < tokens.size()) &&
                (labels[i + 1] == labelAlphabet.lookupObject("I-NP"))) {
              end = tokens.get(i + 1).getEndNode().getOffset();
              i++;
            }
           
            outputAS.add(start, end, nChunkType, features);
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.