protected Object readResolve() throws ObjectStreamException { final Handles handles = getHandles(staticArtifact); final Object artifact = handles.get(instanceHandle); if (artifact == null) { throw new InvalidObjectException(NO_ARTIFACT_ERROR + instanceHandle); } return artifact; }
@Override public synchronized int add(final Object obj) { return super.add(obj); }
protected Handles initialValue() { return new Handles(); } };
@Override public synchronized int add(final Object obj) { return super.add(obj); }
protected Object readResolve() throws ObjectStreamException { final Handles handles = getHandles(staticArtifact); final Object artifact = handles.get(instanceHandle); if (artifact == null) { throw new InvalidObjectException(NO_ARTIFACT_ERROR + instanceHandle); } return artifact; }
protected Handles initialValue() { return new Handles(); } };
public IntraVmArtifact(final Object obj, final boolean storeStatically) { this.staticArtifact = storeStatically; final Handles handles = getHandles(storeStatically); instanceHandle = handles.add(obj); }
public IntraVmArtifact(final Object obj, final boolean storeStatically) { this.staticArtifact = storeStatically; final Handles handles = getHandles(storeStatically); instanceHandle = handles.add(obj); }
@Override public synchronized Object get(final int id) { return super.get(id); } };
@Override public synchronized Object get(final int id) { return super.get(id); } };