这个语法的目的和含义是什么?我看到了像
private Object mSelectedOperationRow;
和 mMessageService = pMessageService;
这样的代码。
完整的代码如下。public class SearchResponseBean extends BaseBean implements Serializable,
SearchResponse {
@Autowired
private SearchLifecycleService mSearchLifecycleService;
@Autowired
private ConfigurationServiceImpl mConfig;
@Value("#{sessionBean}")
private Session session;
@Value("#{searchRequestBean}")
private SearchRequest searchRequest;
@Value("#{searchResponseFilterByBean}")
private SearchResponseFilterBy searchResponseFilterBy;
@Value("#{searchHistoryBean}")
private HistoryBean<SearchHistoryItem> historyBean;
@Autowired
private SearchResponseDataModelFactory mSearchResponseDataModelFactory;
private int mCount;
private DataModel mDataModel;
private SearchPerspective mSearchPerspective;
private Operation mSelectedOperation;
private Object mSelectedOperationRow;
private List mSelectedList;
private List<String> mAvailableOperations;
private List mFilteredList;
private boolean mRelatedDocSearch;
private transient MessageService mMessageService;
public SearchResponseBean() {
mMessageService = new MessageServiceImpl();
}
public SearchResponseBean(MessageService pMessageService) {
mMessageService = pMessageService;
}
protected void init() {
String THIS_METHOD_NAME = "init";
mFilteredList = null;
mSelectedList = null;
mSelectedOperationRow = null;
mSelectedOperation = null;
mCount = -1;
mDataModel = null;
mSearchPerspective = null;
mAvailableOperations = null;
mRelatedDocSearch = false;
logger.debug(getClass(), THIS_METHOD_NAME,
"Initialized with null/defaults. ");
}
m
表示成员变量,p
表示参数(我猜测如此)。 - assylias