Skip to content

Instantly share code, notes, and snippets.

@pfmiles
Created July 2, 2015 09:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pfmiles/7165191a8fe69cdecbf9 to your computer and use it in GitHub Desktop.
Save pfmiles/7165191a8fe69cdecbf9 to your computer and use it in GitHub Desktop.
dummy spring bean, 可用作任意bean的占位符
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