@Override
        public boolean equals(Object o) {
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;

            ServiceDefinition that = (ServiceDefinition) o;

            if (name != null ? !name.equals(that.name) : that.name != null) return false;
            if (clazz != null ? !clazz.equals(that.clazz) : that.clazz != null) return false;
            return classLoader != null ? classLoader.equals(that.classLoader) : that.classLoader == null;

        }
@author Robert HG (254963746@qq.com)on 12/23/15.
lts-core/src/main/java/com/github/ltsopensource/core/spi/ServiceLoader.java