Examples of addObject()


Examples of org.onesocialweb.model.activity.ActivityEntry.addObject()

    // the basics
    ActivityEntry entry = service.getActivityFactory().entry();
    entry.setTitle(status);
    entry.addVerb(service.getActivityFactory().verb(ActivityVerb.POST));
    entry.addObject(object);
    entry.setPublished(now);

    // add attachments if there are any
    for (ActivityObject current : pictureAttachments) {
      entry.addObject(current);
View Full Code Here

Examples of org.openxri.util.PrioritizedList.addObject()

    PrioritizedList list = new PrioritizedList();
    for (int i = 0; i < selectedServices.size(); i++) {
      Service s = (Service) selectedServices.get(i);
      String priority = (s.getPriority() == null) ? PrioritizedList.PRIORITY_NULL
          : s.getPriority().toString();
      list.addObject(priority, s);
    }

    return list.getList();
  }
View Full Code Here

Examples of org.perl6.nqp.sixmodel.SerializationContext.addObject()

        return ref;
    }
    public static SixModelObject scsetobj(SixModelObject scRef, long idx, SixModelObject obj, ThreadContext tc) {
        if (scRef instanceof SCRefInstance) {
            SerializationContext sc = ((SCRefInstance)scRef).referencedSC;
            sc.addObject(obj, (int) idx);
            if (obj.st.sc == null) {
                sc.addSTable(obj.st);
                obj.st.sc = sc;
            }
            return obj;
View Full Code Here

Examples of org.rococoa.cocoa.foundation.NSMutableArray.addObject()

    }

    public void setPronunciations(List<Entry> pronounciations) {
        NSMutableArray pronounciationDicts = NSMutableArray.CLASS.arrayWithCapacity(pronounciations.size());
        for (Entry e : pronounciations) {
            pronounciationDicts.addObject(e.getData());
        }
        setValue(Pronunciations, pronounciationDicts);
    }
   
    public void addPronounciation(Entry pronounciation) {
View Full Code Here

Examples of org.shiftone.cache.Cache.addObject()

    {

        Cache cache1 = new MapCache(new Hashtable());
        Cache cache2 = new SoftCache(cache1);

        cache2.addObject("key", "value");
        assertEquals("value", cache2.getObject("key"));
    }


    public void testReference() throws Exception
View Full Code Here

Examples of org.shiftone.cache.decorator.soft.SoftCache.addObject()

    {

        Cache cache1 = new MapCache(new Hashtable());
        Cache cache2 = new SoftCache(cache1);

        cache2.addObject("key", "value");
        assertEquals("value", cache2.getObject("key"));
    }


    public void testReference() throws Exception
View Full Code Here

Examples of org.springframework.mock.jndi.ExpectedLookupTemplate.addObject()

    Map<String, String> persistenceUnits = new HashMap<String, String>();
    persistenceUnits.put("", "pu1");
    persistenceUnits.put("Person", "pu2");
    ExpectedLookupTemplate jt = new ExpectedLookupTemplate();
    jt.addObject("java:comp/env/pu1", mockEmf);
    jt.addObject("java:comp/env/pu2", mockEmf2);

    DefaultListableBeanFactory bf = new DefaultListableBeanFactory();
    PersistenceAnnotationBeanPostProcessor bpp = new PersistenceAnnotationBeanPostProcessor();
    bpp.setPersistenceUnits(persistenceUnits);
View Full Code Here

Examples of org.springframework.tests.mock.jndi.ExpectedLookupTemplate.addObject()

    UserTransaction ut = mock(UserTransaction.class);
    given(ut.getStatus()).willReturn( Status.STATUS_NO_TRANSACTION, Status.STATUS_ACTIVE, Status.STATUS_ACTIVE);

    MockUOWManager manager = new MockUOWManager();
    ExpectedLookupTemplate jndiTemplate = new ExpectedLookupTemplate();
    jndiTemplate.addObject(WebSphereUowTransactionManager.DEFAULT_USER_TRANSACTION_NAME, ut);
    jndiTemplate.addObject(WebSphereUowTransactionManager.DEFAULT_UOW_MANAGER_NAME, manager);
    WebSphereUowTransactionManager ptm = new WebSphereUowTransactionManager();
    ptm.setJndiTemplate(jndiTemplate);
    ptm.afterPropertiesSet();
View Full Code Here

Examples of org.springframework.web.portlet.ModelAndView.addObject()

    ModelAndView mv = new ModelAndView(viewName);
    if (this.exceptionAttribute != null) {
      if (logger.isDebugEnabled()) {
        logger.debug("Exposing Exception as model attribute '" + this.exceptionAttribute + "'");
      }
      mv.addObject(this.exceptionAttribute, ex);
    }
    return mv;
  }

}
View Full Code Here

Examples of org.springframework.web.servlet.ModelAndView.addObject()

                populateSearchMessages(searchInfo);
            }
        }

        ModelAndView modelAndView = new ModelAndView(getViewName(), "sessions", sessionList);
        modelAndView.addObject("searchInfo", searchInfo);

        return modelAndView;
    }

    private void populateSearchMessages(SessionSearchInfo searchInfo) {
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.