public abstract class AbstractTenantAwareSerializationDTO extends Object implements Serializable
Tenant. Each subclass must implement resolveObject() which may add additional logic to the
deserialization process.
Instead of writing the instance (manager, service) itself to the stream the instance will be during serialization
replaced by a subclass of this class and by deserialization a subclass will return the correct (tenant dependend)
object.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTenantAwareSerializationDTO(String tenantID) |
protected |
AbstractTenantAwareSerializationDTO(Tenant tenant) |
| Modifier and Type | Method and Description |
|---|---|
protected Tenant |
getTenant() |
protected String |
getTenantID() |
Object |
readResolve()
This method is called by the Java serialization mechanism.
|
abstract Object |
resolveObject()
This method is called by the
readResolve() method after setting the correct Tenant. |
String |
toString() |
protected AbstractTenantAwareSerializationDTO(Tenant tenant)
protected AbstractTenantAwareSerializationDTO(String tenantID)
protected String getTenantID()
protected Tenant getTenant()
public abstract Object resolveObject() throws ObjectStreamException
readResolve() method after setting the correct Tenant. You may/must
add additional logic for your own serializable object.ObjectStreamExceptionpublic final Object readResolve() throws ObjectStreamException
ObjectStreamExceptionCopyright © 2017 SAP SE. All Rights Reserved.