Hier ist der Anmerkungscode.
Code: Select all
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@Service
public @interface PageHandlerType {
String source();
String businessMethod();
}
Code: Select all
public class CreatePageServiceImpl implements PageHandlerType {
private final String source;
private final String businessMethod;
public CreatePageServiceImpl(String source, String businessMethod) {
this.source = source;
this.businessMethod = businessMethod;
}
@Override
public String source() {
return source;
}
@Override
public String businessMethod() {
return businessMethod;
}
@Override
public Class
Mobile version