mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
125603 rmunteanu: Merged 5.1.1 (5.1.1) to 5.1.N (5.1.2) 125484 slanglois: MNT-16155 Update source headers - remove old Copyrights from Java and JSP dource files git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@125781 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
68 lines
1.2 KiB
Java
68 lines
1.2 KiB
Java
package org.alfresco.repo.policy;
|
|
|
|
import org.alfresco.api.AlfrescoPublicApi;
|
|
|
|
/**
|
|
* Behaviour binding to a Service.
|
|
*
|
|
* @author David Caruana
|
|
*
|
|
*/
|
|
@AlfrescoPublicApi
|
|
public class ServiceBehaviourBinding implements BehaviourBinding
|
|
{
|
|
// The service
|
|
private Object service;
|
|
|
|
/**
|
|
* Construct
|
|
*
|
|
* @param service the service
|
|
*/
|
|
/*package*/ ServiceBehaviourBinding(Object service)
|
|
{
|
|
this.service = service;
|
|
}
|
|
|
|
/* (non-Javadoc)
|
|
* @see org.alfresco.repo.policy.BehaviourBinding#generaliseBinding()
|
|
*/
|
|
public BehaviourBinding generaliseBinding()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* Gets the Service
|
|
*
|
|
* @return the service
|
|
*/
|
|
public Object getService()
|
|
{
|
|
return service;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object obj)
|
|
{
|
|
if (obj == null || !(obj instanceof ServiceBehaviourBinding))
|
|
{
|
|
return false;
|
|
}
|
|
return service.equals(((ServiceBehaviourBinding)obj).service);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode()
|
|
{
|
|
return service.hashCode();
|
|
}
|
|
|
|
@Override
|
|
public String toString()
|
|
{
|
|
return "ServiceBinding[service=" + service + "]";
|
|
}
|
|
|
|
}
|