Package net.sf.joafip.store.entity.objectio

Examples of net.sf.joafip.store.entity.objectio.StorageInfo


    // create the object by reading
    final IObjectInput objectInput = new ObjectInputImmediateSerializable(
        this, classInfoFactory, proxyManager2, helperBinaryConversion);

    final StorageInfo storageInfo = new StorageInfo();
    // storageInfo.setHeaderDataSize(0);
    ObjectAndPersistInfo unserializedAndPersistInfo = objectInput
        .createObject(dataRecordIdentifier, binary, classInfo,
            storageInfo);
    originalValue = unserializedAndPersistInfo.originalValue;
View Full Code Here


      ObjectIOException, ObjectIOInvalidClassException,
      ObjectIONotSerializableException,
      ObjectIODataRecordNotFoundException,
      ObjectIOClassNotFoundException, ObjectIODataCorruptedException,
      ObjectIOTooBigForSerializationException {
    final StorageInfo storageInfo = new StorageInfo();
    final int offset = storageInfo.getHeaderDataSize();
    final ObjectAndPersistInfo objectAndPersistInfo =
    /**/new ObjectAndPersistInfo(toSerialize, false, classInfo,
        storageInfo);
    final IObjectOutput objectOutput = new ObjectOutputSerializable(this,
        classInfoFactory, proxyManager2, helperBinaryConversion);
View Full Code Here

    final IObjectOutput objectOutput = new ObjectOutputForBasic(this,
        classInfoFactory, proxyManager2, helperBinaryConversion);
    final ClassInfo classInfo = classInfoFactory
        .getNoProxyClassInfo(Integer.class);
    final Integer integer = Integer.valueOf(10);
    final StorageInfo storageInfo = new StorageInfo();
    final ObjectAndPersistInfo objectAndItsClassInfo =
    /**/new ObjectAndPersistInfo(integer, false, classInfo, storageInfo);
    objectOutput.prepareWrite(objectAndItsClassInfo);
    final byte[] binary = new byte[1000];
    final int offset = storageInfo.getHeaderDataSize();
    storageInfo.setHeaderDataSize(offset);
    // int byte size to skip class name information
    objectOutput
        .writeBody(binary, offset/*
                     * bodyBeginOffset for class id
                     */, objectAndItsClassInfo, false/* updateOriginalValue */);
 
View Full Code Here

    setted = false;
    final Class<?> objectClass = Bob1.class;

    final ClassInfo classInfo = classInfoFactory
        .getNoProxyClassInfo(objectClass);
    final StorageInfo storageInfo = new StorageInfo();
    final ClassLoaderProvider classLoaderProvider = new ClassLoaderProvider();
    final ProxyManager2 proxyManager2 = new ProxyManager2(
        classLoaderProvider, classInfoFactory);
    Bob1 bob1 = (Bob1) proxyManager2.newInstanceNoConstruction(classInfo,
        storageInfo, this, null, false).getObject();
View Full Code Here

      ObjectIOException {
    final Class<?> objectClass = BobWithDifferentMethod.class;
    final ClassInfo classInfo = classInfoFactory
        .getNoProxyClassInfo(objectClass);
    setted = false;
    final StorageInfo storageInfo = new StorageInfo();
    final ClassLoaderProvider classLoaderProvider = new ClassLoaderProvider();
    final ProxyManager2 proxyManager2 = new ProxyManager2(
        classLoaderProvider, classInfoFactory);
    final BobWithDifferentMethod bob = (BobWithDifferentMethod) proxyManager2
        .newInstanceNoConstruction(classInfo, storageInfo, this, null,
View Full Code Here

    classInfoFactory.setConversionManager(new ConversionManager(
        classInfoFactory));

    final ClassInfo classInfo = classInfoFactory
        .getNoProxyClassInfo(objectClass);
    final StorageInfo storageInfo = new StorageInfo();
    final ProxyManager2 proxyManager2 = new ProxyManager2(
        new ClassLoaderProvider(), classInfoFactory);
    final Object object = proxyManager2.newInstanceNoConstruction(
        classInfo, storageInfo, this, DataRecordIdentifier.LAST, true)
        .getObject();
View Full Code Here

      SecurityException,// NOPMD
      NoSuchFieldException, IllegalArgumentException,
      IllegalAccessException, ObjectIOException, ClassInfoException {
    final ClassInfo classInfo = classInfoFactory
        .getNoProxyClassInfo(Bob1.class);
    final StorageInfo storageInfo = new StorageInfo();
    final Bob1 proxyObject = (Bob1) proxyManager2.newInstanceConstruct(
        classInfo, storageInfo, objectIOManager,
        DataRecordIdentifier.LAST, true);
    // below no more needed, new instance in loaded state since constructed
    // final IProxyCallBack proxy = (IProxyCallBack) proxyObject;
View Full Code Here

    // removedFromCandidateIdentifier = null;// NOPMD

    final ClassInfo classInfo = classInfoFactory
        .getNoProxyClassInfo(Bob1.class);
    final StorageInfo storageInfo = new StorageInfo();
    storageInfo
        .setHeaderDataSize(AbstractObjectIOManagerIOForObject.HEADER_DATA_SIZE);
    objectIOManager
        .clearObjectAndPersistInfoByDataRecordIdentifier(identifier);
    final ObjectAndPersistInfo proxyObjectAndItsClassInfo = proxyManager2
        .newInstanceNoConstruction(classInfo, storageInfo,
View Full Code Here

    final Class<?> objectClass = BobCallInConstructor.class;
    final ClassInfo classInfo = classInfoFactory
        .getNoProxyClassInfo(objectClass);
    final ProxyManager2 proxyManager2 = new ProxyManager2(
        new ClassLoaderProvider(), classInfoFactory);
    final StorageInfo storageInfo = new StorageInfo();
    inConstruction = true;
    final BobCallInConstructor object = (BobCallInConstructor) proxyManager2
        .newInstanceConstruct(classInfo,
            new Class<?>[] { String.class },
            new Object[] { "a name" }, storageInfo, this,
View Full Code Here

    classInfoFactory.setConversionManager(new ConversionManager(
        classInfoFactory));

    final ClassInfo classInfo = classInfoFactory
        .getNoProxyClassInfo(objectClass);
    final StorageInfo storageInfo = new StorageInfo();
    final ClassLoaderProvider classLoaderProvider = new ClassLoaderProvider();
    final ProxyManager2 proxyManager2 = new ProxyManager2(
        classLoaderProvider, classInfoFactory);

    // do a public method interception test before test package visibility
View Full Code Here

TOP

Related Classes of net.sf.joafip.store.entity.objectio.StorageInfo

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.