public abstract class TargetAwareIdentifierAccessor extends Object implements IdentifierAccessor
IdentifierAccessor
that is aware of the target bean to obtain the identifier from so that it can generate a
more meaningful exception in case of an absent identifier and a call to getRequiredIdentifier()
.Constructor and Description |
---|
TargetAwareIdentifierAccessor(Object target) |
Modifier and Type | Method and Description |
---|---|
Object |
getRequiredIdentifier()
Returns the identifier of the underlying instance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIdentifier
public TargetAwareIdentifierAccessor(Object target)
public Object getRequiredIdentifier()
IdentifierAccessor
TargetAwareIdentifierAccessor
or override this method to add more context to the exception being thrown in
case of the absence of an identifier.getRequiredIdentifier
in interface IdentifierAccessor
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.