Changed BaseResourceReturningMethodBinding to accept IBaseBundle as a bundle resource.

This commit is contained in:
Jennifer Chan 2020-01-02 14:39:29 -05:00
parent 0c83c1ce44
commit e935c75025
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ public abstract class BaseResourceReturningMethodBinding extends BaseMethodBindi
} else if (IBaseResource.class.isAssignableFrom(methodReturnType)) {
if ((Modifier.isAbstract(methodReturnType.getModifiers()) == false && theContext.getResourceDefinition((Class<? extends IBaseResource>) methodReturnType).isBundle()) || IBaseBundle.class.isAssignableFrom(methodReturnType)) {
if ( IBaseBundle.class.isAssignableFrom(methodReturnType)) {
myMethodReturnType = MethodReturnTypeEnum.BUNDLE_RESOURCE;
} else {
myMethodReturnType = MethodReturnTypeEnum.RESOURCE;