Package net.sf.joafip.store.service.binary

Examples of net.sf.joafip.store.service.binary.HelperBinaryConversion


          EnumFileAccessMode.NIO_RANDOM_FILE_ACCESS, dataFile, false,
          false, false, false, 1, 0, null);
      dataManager = new HeapFileDataManager(setup, false);
      final HeapRecordableManager heapRecordableManager = new HeapRecordableManager(
          dataManager);
      final HelperBinaryConversion helperBinaryConversion = new HelperBinaryConversion();
      final StoreHeader storeHeader = new StoreHeader(
          heapRecordableManager, helperBinaryConversion);
      final ClassInfoFactory classInfoFactory =
      /**/new ClassInfoFactory(1);
      classInfoFactory.setConversionManager(new ConversionManager(
          classInfoFactory));
      final ClassNameManager classNameManager = new ClassNameManager(
          heapRecordableManager, storeHeader, classInfoFactory,
          helperBinaryConversion);
      final StoreSynchro storeSynchro = new StoreSynchro();

      objectIOManager = new ObjectIOManager(1, dataManager,
          false/* proxyMode */, classNameManager, storeSynchro,
          classInfoFactory, helperBinaryConversion, null/*
                                 * no proxy
                                 * manager
                                 */);
      helperBinaryConversion
          .initialize(classInfoFactory, objectIOManager);
    } catch (HeapException exception) {
      throw new FilePersistenceException(exception);
    } catch (ObjectIOException exception) {
      throw new FilePersistenceException(exception);
View Full Code Here


  }

  private MainSerializeJoafip() throws ObjectIOException,
      BinaryConverterException {
    super();
    final HelperBinaryConversion helperBinaryConversion = new HelperBinaryConversion();
    final IClassNameManager classNameManager = new ClassNameManagerMock();
    final int currentDataModelIdentifier = 1;
    final ClassInfoFactory classInfoFactory = new ClassInfoFactory(
        currentDataModelIdentifier);
    final IProxyManagerForObjectIO proxyManager = new SerializerProxyManager(
        classInfoFactory);
    serializer = new SerializerObjectIOManager(currentDataModelIdentifier,
        classNameManager, classInfoFactory, helperBinaryConversion,
        proxyManager);
    helperBinaryConversion.initialize(classInfoFactory, serializer);
  }
View Full Code Here

    final IHeapDataManager dataManager = getDataManager();
    if (dataManager == null) {
      throw new StoreException("data manager must be defined");
    }
    heapRecordableManager = new HeapRecordableManager(dataManager);
    helperBinaryConversion = new HelperBinaryConversion();
    storeHeader = new StoreHeader(heapRecordableManager,
        helperBinaryConversion);
    classInfoFactory = new ClassInfoFactory(currentDataModelIdentifier);
    conversionManager = new ConversionManager(classInfoFactory);
    classLoaderProvider = new ClassLoaderProvider();
View Full Code Here

    dataManager = store.getDataManager();
    classLoaderProvider = store.getClassLoaderProvider();
    final IClassNameManager classNameManager = store.getClassNameManager();
    final StoreSynchro storeSynchro = store.getStoreSynchro();
    classInfoFactory = store.getClassInfoFactory();
    final HelperBinaryConversion helperBinaryConversion = store
        .getHelperBinaryConversion();
    try {
      /*
       * a new object io manager that force proxy mode
       */
 
View Full Code Here

TOP

Related Classes of net.sf.joafip.store.service.binary.HelperBinaryConversion

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.