edu.vt.middleware.ldap.bean.AbstractLdapBean Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vt-ldap Show documentation
Show all versions of vt-ldap Show documentation
Library for performing common LDAP operations
/*
$Id: AbstractLdapBean.java 1330 2010-05-23 22:10:53Z dfisher $
Copyright (C) 2003-2010 Virginia Tech.
All rights reserved.
SEE LICENSE FOR MORE INFORMATION
Author: Middleware Services
Email: [email protected]
Version: $Revision: 1330 $
Updated: $Date: 2010-05-23 18:10:53 -0400 (Sun, 23 May 2010) $
*/
package edu.vt.middleware.ldap.bean;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* AbstractLdapBean
provides common implementations to other bean
* objects.
*
* @author Middleware Services
* @version $Revision: 1330 $ $Date: 2010-05-23 18:10:53 -0400 (Sun, 23 May 2010) $
*/
public abstract class AbstractLdapBean
{
/** Log for this class. */
protected final Log logger = LogFactory.getLog(getClass());
/** Factory for creating ldap beans. */
protected final LdapBeanFactory beanFactory;
/**
* Creates a new AbstractLdapBean
with the supplied ldap bean
* factory.
*
* @param lbf LdapBeanFactory
*/
public AbstractLdapBean(final LdapBeanFactory lbf)
{
this.beanFactory = lbf;
}
/**
* Returns whether the supplied Object
contains the same data as
* this bean.
*
* @param o Object
*
* @return boolean
*/
public boolean equals(final Object o)
{
if (o == null) {
return false;
}
return
o == this ||
(this.getClass() == o.getClass() && o.hashCode() == this.hashCode());
}
/**
* This returns the hash code for this object.
*
* @return int
*/
public abstract int hashCode();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy