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() |
| 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, waitgetIdentifierpublic Object getRequiredIdentifier()
IdentifierAccessorTargetAwareIdentifierAccessor or override this method to add more context to the exception being thrown in
case of the absence of an identifier.getRequiredIdentifier in interface IdentifierAccessorCopyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.