
org.dellroad.stuff.spring.AbstractBean Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dellroad-stuff-spring Show documentation
Show all versions of dellroad-stuff-spring Show documentation
DellRoad Stuff classes related to the Spring Framework.
The newest version!
/*
* Copyright (C) 2022 Archie L. Cobbs. All rights reserved.
*/
package org.dellroad.stuff.spring;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
/**
* Generic support superclass for Spring beans.
*/
public abstract class AbstractBean implements InitializingBean, DisposableBean {
protected final Logger log = LoggerFactory.getLogger(this.getClass());
/**
* Initialize bean.
*
*
* The implementation in {@link AbstractBean} does nothing.
*/
@Override
public void afterPropertiesSet() throws Exception {
}
/**
* Shutdown bean.
*
*
* The implementation in {@link AbstractBean} does nothing.
*/
@Override
public void destroy() throws Exception {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy