Changed BaseResourceReturningMethodBinding to accept IBaseBundle as a bundle resource.
This commit is contained in:
parent
0c83c1ce44
commit
e935c75025
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue