50,528
社区成员
发帖
与我相关
我的任务
分享
public class Bridge<T extends Serializable> {
private T entity;
protected void setEntity(final T entity) {
this.entity = entity;
}
public T getEntity() {
return this.entity;
}
}
public class StringBridge extends Bridge<String> {
@Override
@Autowired
protected void setEntity(final String entity) {
// TODO Auto-generated method stub
super.setEntity(entity);
}
}
StringBridge bridge = new StringBridge();
Method[] methodArr = bridge.getClass().getDeclaredMethods();
for (Method method : methodArr) {
System.out.println(method);
Annotation[] annotations = method.getAnnotations();
for (Annotation annotation : annotations) {
System.out.println(annotation);
}
}
protected void com.ces.config.StringBridge.setEntity(java.lang.String)
@org.springframework.beans.factory.annotation.Autowired(required=true)
protected void com.ces.config.StringBridge.setEntity(java.io.Serializable)
protected void com.ces.config.StringBridge.setEntity(java.lang.String)
@org.springframework.beans.factory.annotation.Autowired(required=true)
protected void com.ces.config.StringBridge.setEntity(java.io.Serializable)
@org.springframework.beans.factory.annotation.Autowired(required=true)