Package org.milyn.javabean.context

Examples of org.milyn.javabean.context.BeanIdStore


public class BeanIdRegister {

  private final BeanIdStore beanIdStore;

  public BeanIdRegister() {
    beanIdStore = new BeanIdStore();
  }
View Full Code Here


  public void test_BeanContext_performance(int beans, int loops, boolean warmup) {
    sleep();

    executionContext = new MockExecutionContext();

    BeanIdStore beanIdStore = executionContext.getContext().getBeanIdStore();

    ArrayList<BeanId> beanIds = new ArrayList<BeanId>();

    for(int i = 0; i < beans; i++) {
      beanIds.add(beanIdStore.register(getBeanId(i)));
    }

    Object bean = new Object();

    long begin = System.currentTimeMillis();
View Full Code Here

        Smooks smooks = new Smooks(getClass().getResourceAsStream("smooks-config-failed-select-02.xml"));

        try {
            ExecutionContext execContext = smooks.createExecutionContext();
            BeanContext beanContext = execContext.getBeanContext();
            BeanIdStore beanIdStore =  execContext.getContext().getBeanIdStore();

            BeanId requiredOrderNumId = beanIdStore.register("requiredOrderNum");

            beanContext.addBean(requiredOrderNumId, 9999, null);
            try {
                smooks.filterSource(execContext, new StringSource("<doc/>"), null);
                fail("Expected DataSelectionException");
View Full Code Here

        return config;
    }

    @Initialize
    public void intitialize() throws SmooksConfigurationException {
      BeanIdStore beanIdStore = appContext.getBeanIdStore();

      beanIdObj = beanIdStore.register(beanId);
      resultSetBeanId = beanIdStore.register(resultSetName);
    }
View Full Code Here

    private BeanId deletedBeanId;

    @Initialize
    public void initialize() throws SmooksConfigurationException {

      BeanIdStore beanIdStore = appContext.getBeanIdStore();

      beanId = beanIdStore.register(beanIdName);

      if(deletedBeanIdName != null) {
        deletedBeanId = beanIdStore.register(deletedBeanIdName);
      }

      objectStore = new ApplicationContextObjectStore(appContext);
    }
View Full Code Here

    private BeanId insertedBeanId;

    @Initialize
    public void initialize() throws SmooksConfigurationException {
      BeanIdStore beanIdStore = appContext.getBeanIdStore();

      beanId = beanIdStore.register(beanIdName);

      if(insertedBeanIdName != null) {
        insertedBeanId = beanIdStore.register(insertedBeanIdName);
      }

      objectStore = new ApplicationContextObjectStore(appContext);
    }
View Full Code Here

    private BeanId updatedBeanId;

    @Initialize
    public void initialize() throws SmooksConfigurationException {
      BeanIdStore beanIdStore = appContext.getBeanIdStore();

      beanId = beanIdStore.register(beanIdName);

      if(updatedBeanIdName != null) {
        updatedBeanId = beanIdStore.register(updatedBeanIdName);
      }

      objectStore = new ApplicationContextObjectStore(appContext);
    }
View Full Code Here

TOP

Related Classes of org.milyn.javabean.context.BeanIdStore

Copyright © 2018 www.massapicom. 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.