You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
386 B
18 lines
386 B
package com.woniu.design;
|
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
@Component
|
|
public class WoNiuHandler extends AbstractHandler{
|
|
|
|
@Override
|
|
public void AA(String nikeName) {
|
|
//业务逻辑
|
|
System.out.println("我是蜗牛");
|
|
}
|
|
|
|
@Override
|
|
public void afterPropertiesSet() throws Exception {
|
|
Factory2.register("蜗牛",this);
|
|
}
|
|
}
|
|
|