@Bean
    protected DefaultSampleManager sampleManager() {
        return new DefaultSampleManager();
    }
Simulated business-tier "Manager", not Shiro related, just an example

@return
samples/spring-mvc/src/main/java/org/apache/shiro/samples/spring/config/ApplicationConfig.java