Removed assert on functionId !=null in GemfireFunctionProxyFactoryBean

This commit is contained in:
David Turanski
2012-11-26 16:00:34 -05:00
parent 1fbf96db3b
commit 9b73562e22
2 changed files with 5 additions and 13 deletions

View File

@@ -171,8 +171,9 @@ public class GemfireFunctionProxyFactoryBean implements FactoryBean<Object>, Met
@Override
public void afterPropertiesSet() throws Exception {
if (this.functionId != null) {
Assert.isTrue(this.methodMetadata.isSingletonInterface(), "cannot assign default function id if interface has multiple methods");
this.methodMetadata.getSingletonMethodMetada().setFunctionId(this.functionId);
if (this.methodMetadata.isSingletonInterface()) {
this.methodMetadata.getSingletonMethodMetada().setFunctionId(this.functionId);
}
}
}
}