Created
July 2, 2015 09:41
-
-
Save pfmiles/7165191a8fe69cdecbf9 to your computer and use it in GitHub Desktop.
dummy spring bean, 可用作任意bean的占位符
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test; | |
import org.springframework.beans.factory.FactoryBean; | |
public class NullFactoryBean implements FactoryBean { | |
public Void getObject() throws Exception { | |
return null; | |
} | |
public Class<? extends Void> getObjectType() { | |
return null; | |
} | |
public boolean isSingleton() { | |
return true; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment