Package net.sf.joafip.store.service.proxy

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


    // 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

      FilePersistenceInvalidClassException,
      FilePersistenceDataCorruptedException,
      FilePersistenceNotSerializableException, ProxyException,
      FilePersistenceTooBigForSerializationException {
    session.open();
    final IInstanceFactory instanceFactory = session.getInstanceFactory();
    final Bob1 bob1 = (Bob1) instanceFactory.newInstance(Bob1.class);
    session.save();
    assertFalse("must not be loaded",
        ProxyManager2.proxiedObjectIsLoaded(bob1));
    saveDoneFlag = false;
    final BobForAutoSaveWhenConstructTest bobForAutoSaveTest = (BobForAutoSaveWhenConstructTest) instanceFactory
        .newInstance(BobForAutoSaveWhenConstructTest.class,
            new Class[] { Bob1.class }, new Object[] { bob1 });
    assertTrue(MUST_SAVE, saveDoneFlag);
    session.setObject(KEY, bobForAutoSaveTest);
    session.close();
View Full Code Here

      FilePersistenceInvalidClassException,
      FilePersistenceDataCorruptedException,
      FilePersistenceNotSerializableException, ProxyException,
      FilePersistenceTooBigForSerializationException {
    session.open();
    final IInstanceFactory instanceFactory = session.getInstanceFactory();
    saveDoneFlag = false;
    final Bob1 bob1 = Bob1.newInstance(instanceFactory, true);
    assertTrue(MUST_SAVE, saveDoneFlag);
    session.setObject(KEY, bob1);
    session.close();
View Full Code Here

      FilePersistenceInvalidClassException,
      FilePersistenceDataCorruptedException,
      FilePersistenceNotSerializableException,
      FilePersistenceTooBigForSerializationException {
    session.open();
    final IInstanceFactory instanceFactory = session.getInstanceFactory();
    saveDoneFlag = false;
    BobASDelegatingListenDelegate bob = BobASDelegatingListenDelegate
        .newInstance(instanceFactory);
    assertTrue(MUST_SAVE, saveDoneFlag);
    saveDoneFlag = false;
View Full Code Here

      FilePersistenceInvalidClassException,
      FilePersistenceDataCorruptedException,
      FilePersistenceNotSerializableException,
      FilePersistenceTooBigForSerializationException {
    session.open();
    final IInstanceFactory instanceFactory = session.getInstanceFactory();
    assertNotNull(MUST_HAS_INSTANCE_FACTORY, instanceFactory);
    saveDoneFlag = false;

    BobASDelegatingListenDelegate bob = new BobASDelegatingListenDelegate(
        instanceFactory);
View Full Code Here

      FilePersistenceInvalidClassException,
      FilePersistenceDataCorruptedException,
      FilePersistenceNotSerializableException,
      FilePersistenceTooBigForSerializationException {
    session.open();
    final IInstanceFactory instanceFactory = session.getInstanceFactory();
    assertNotNull(MUST_HAS_INSTANCE_FACTORY, instanceFactory);
    saveDoneFlag = false;

    BobASDelegatingListenDelegate bob = BobASDelegatingListenDelegate
        .newInstance(instanceFactory);
View Full Code Here

      FilePersistenceInvalidClassException,
      FilePersistenceDataCorruptedException,
      FilePersistenceNotSerializableException,
      FilePersistenceTooBigForSerializationException, ProxyException {
    session.open();
    final IInstanceFactory instanceFactory = session.getInstanceFactory();
    assertNotNull(MUST_HAS_INSTANCE_FACTORY, instanceFactory);
    final BobASDelegatingListenDelegate bob = BobASDelegatingListenDelegate
        .newInstance(instanceFactory);
    assertTrue("must be a proxy", ProxyManager2.isProxyOrEnhanced(bob));
    assertTrue("must be unloaded", ProxyManager2.isUnloaded(bob));
View Full Code Here

      FilePersistenceClassNotFoundException,
      FilePersistenceInvalidClassException,
      FilePersistenceDataCorruptedException,
      FilePersistenceNotSerializableException,
      FilePersistenceTooBigForSerializationException, ProxyException {
    final IInstanceFactory instanceFactory = session.getInstanceFactory();
    assertNotNull(MUST_HAS_INSTANCE_FACTORY, instanceFactory);

    session.open();
    BobASDelegatingListenDelegate bob = BobASDelegatingListenDelegate
        .newInstance(instanceFactory);
View Full Code Here

      FilePersistenceInvalidClassException,
      FilePersistenceDataCorruptedException,
      FilePersistenceNotSerializableException,
      FilePersistenceTooBigForSerializationException {

    final IInstanceFactory instanceFactory = session.getInstanceFactory();
    session.open();
    saveDoneFlag = false;
    BobASWithTransientCaller bob = BobASWithTransientCaller.newInstance(
        instanceFactory, true);
    assertTrue(MUST_SAVE, saveDoneFlag);
View Full Code Here

TOP

Related Classes of net.sf.joafip.store.service.proxy.IInstanceFactory

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.