Code example for ScopedObject

Methods: getTargetObject

0
 
	@Override 
	public String getEntityName(Object entity) {
		if (entity instanceof ScopedObject) {
			// Determine underlying object's type. 
			Object targetObject = ((ScopedObject) entity).getTargetObject();
			return AopUtils.getTargetClass(targetObject).getName();
		} 
 
		// Any other object: delegate to the default implementation. 
		return super.getEntityName(entity);
	} 
 
} 
Connect your IDE to all the code out there  Get Codota for Java