Finally resolved "AR-401 Can only have one policy handler". Multiple handlers may now be registered.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8698 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
David Caruana
2008-04-07 15:31:47 +00:00
parent 0e407d054b
commit 9aaeac4558
3 changed files with 49 additions and 8 deletions

View File

@@ -139,7 +139,7 @@ import org.alfresco.service.namespace.QName;
if (isEnabled)
{
// Find class behaviour by scanning up the class hierarchy
BehaviourDefinition behaviour = null;
List<BehaviourDefinition<B>> behaviour = null;
while(behaviour == null && binding != null)
{
behaviour = classMap.get(binding);
@@ -150,7 +150,7 @@ import org.alfresco.service.namespace.QName;
}
if (behaviour != null)
{
behaviours.add(behaviour);
behaviours.addAll(behaviour);
}
}