1 17 package org.alfresco.repo.policy; 18 19 20 26 public class ServiceBehaviourBinding implements BehaviourBinding 27 { 28 private Object service; 30 31 36 ServiceBehaviourBinding(Object service) 37 { 38 this.service = service; 39 } 40 41 44 public BehaviourBinding generaliseBinding() 45 { 46 return null; 47 } 48 49 54 public Object getService() 55 { 56 return service; 57 } 58 59 @Override 60 public boolean equals(Object obj) 61 { 62 if (obj == null || !(obj instanceof ServiceBehaviourBinding)) 63 { 64 return false; 65 } 66 return service.equals(((ServiceBehaviourBinding)obj).service); 67 } 68 69 @Override 70 public int hashCode() 71 { 72 return service.hashCode(); 73 } 74 75 @Override 76 public String toString() 77 { 78 return "ServiceBinding[service=" + this + "]"; 79 } 80 81 } 82 | Popular Tags |