All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dellroad.stuff.spring.AbstractBean Maven / Gradle / Ivy

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