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.
17 lines
385 B
17 lines
385 B
package com.woniu.design;
|
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
@Component
|
|
public class PiQiuHandler extends AbstractHandler{
|
|
@Override
|
|
public void AA(String nikeName) {
|
|
//业务逻辑
|
|
System.out.println("我是皮球");
|
|
}
|
|
|
|
@Override
|
|
public void afterPropertiesSet() throws Exception {
|
|
Factory2.register("皮球",this);
|
|
}
|
|
}
|
|
|