Examples of IInstanceFactory


Examples of net.sf.joafip.store.service.proxy.IInstanceFactory

    // builder.setMaintenedInMemoryQuota(100);
    final IFilePersistence filePersistence = builder.build();
    filePersistence.setAutoSaveEventListener(this);
    final IExclusiveDataAccessSession session = filePersistence
        .createExclusiveDataAccessSession();
    final IInstanceFactory instanceFactory = session.getInstanceFactory();

    session.open();
    final Tree<String> tree = Tree.newInstance(instanceFactory);
    appendLoop(tree);
    session.close();
View Full Code Here

Examples of net.sf.joafip.store.service.proxy.IInstanceFactory

    final IExclusiveDataAccessSession session = filePersistence
        .createExclusiveDataAccessSession();
    session.open();

    List<Integer> bigList;
    final IInstanceFactory instanceFactory = session.getInstanceFactory();
    bigList = PLinkedList.newInstance(instanceFactory);

    assertTrue("must be a proxy", ProxyManager2.isProxyOrEnhanced(bigList));
    // instance, proxy attached to persistence
    int count;
View Full Code Here

Examples of net.sf.joafip.store.service.proxy.IInstanceFactory

    // 0 for immediate saving
    filePersistence.autoSaveSetup(0);
    final IExclusiveDataAccessSession session = filePersistence
        .createExclusiveDataAccessSession();
    session.open();
    final IInstanceFactory instanceFactory = session.getInstanceFactory();

    final Element element = Element.newInstance(instanceFactory);
    element.addNameSpace(HELLO);
    final Element clone = element.clone();
    List<String> list = clone.getAdditionalNamespaces();
View Full Code Here

Examples of net.sf.joafip.store.service.proxy.IInstanceFactory

    // 0 for immediate saving
    filePersistence.autoSaveSetup(0);
    final IExclusiveDataAccessSession session = filePersistence
        .createExclusiveDataAccessSession();
    session.open();
    final IInstanceFactory instanceFactory = session.getInstanceFactory();

    try {
      ElementKo.newInstance(instanceFactory);
      fail("must fail because of method ElementKo#setAdditionnalNamespaces");
    } catch (Exception exception) {
View Full Code Here

Examples of net.sf.joafip.store.service.proxy.IInstanceFactory

    node = ProxyTestListNode.newInstance(null);
    assertFalse("must not be a proxy",
        ProxyManager2.isProxyOrEnhanced(node));

    // when instance factory is used
    final IInstanceFactory instanceFactory = session.getInstanceFactory();
    node = ProxyTestListNode.newInstance(instanceFactory);
    assertTrue("must be a proxy", ProxyManager2.isProxyOrEnhanced(node));
    assertTrue("must be loaded", ProxyManager2.proxiedObjectIsLoaded(node));

    // check is attached to file persistence
View Full Code Here

Examples of net.sf.joafip.store.service.proxy.IInstanceFactory

      FilePersistenceInvalidClassException,
      FilePersistenceDataCorruptedException,
      FilePersistenceNotSerializableException,
      FilePersistenceTooBigForSerializationException { // NOPMD
    session.open();
    final IInstanceFactory instanceFactory = session.getInstanceFactory();
    ProxyTestList<Integer> list = new ProxyTestList<Integer>(
        instanceFactory);
    for (int count = 0; count < 100; count++) {
      list.add(count);
    }
View Full Code Here

Examples of net.sf.joafip.store.service.proxy.IInstanceFactory

      FilePersistenceNotSerializableException,
      FilePersistenceTooBigForSerializationException {
    final IExclusiveDataAccessSession session = filePersistence
        .createExclusiveDataAccessSession();

    final IInstanceFactory instanceFactory = session.getInstanceFactory();
    session.open();
    final Set<String> set = PTreeSet.newInstance(instanceFactory);
    set.add(ID_KEY_NAME);
    set.add(TYPE_KEY_NAME);
    final Iterator<String> iterator = set.iterator();
View Full Code Here

Examples of net.sf.joafip.store.service.proxy.IInstanceFactory

      FilePersistenceNotSerializableException,
      FilePersistenceTooBigForSerializationException {
    final IExclusiveDataAccessSession session = filePersistence
        .createExclusiveDataAccessSession();

    final IInstanceFactory instanceFactory = session.getInstanceFactory();
    session.open();
    final Map<String, String> map = PTreeMap.newInstance(instanceFactory);
    map.put(ID_KEY_NAME, ID_KEY_NAME);
    map.put(TYPE_KEY_NAME, TYPE_KEY_NAME);
    final Iterator<Entry<String, String>> iterator = map.entrySet()
View Full Code Here

Examples of net.sf.joafip.store.service.proxy.IInstanceFactory

    builder.setMaintenedInMemory(false);
    // builder.setMaintenedInMemoryQuota(100);
    final IFilePersistence filePersistence = builder.build();
    final IExclusiveDataAccessSession session = filePersistence
        .createExclusiveDataAccessSession();
    final IInstanceFactory instanceFactory = session.getInstanceFactory();

    session.open();
    final Tree<String> tree = Tree.newInstance(instanceFactory);
    appendLoop(tree);
    session.close();
View Full Code Here

Examples of net.sf.joafip.store.service.proxy.IInstanceFactory

    builder.setMaintenedInMemory(false);
    // builder.setMaintenedInMemoryQuota(100);
    final IFilePersistence filePersistence = builder.build();
    final IExclusiveDataAccessSession session = filePersistence
        .createExclusiveDataAccessSession();
    final IInstanceFactory instanceFactory = session.getInstanceFactory();

    session.open();
    final Tree<String> tree = Tree.newInstance(instanceFactory);
    appendLoop(tree);
    session.close();
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.