文章列表
在CNF中,如果使用了自己的模型,并实现IAdaptable:
public abstract class ESBFile extends ESBResource implements IESBFile, IAdaptable {
protected IFile file;
...
public Object getAdapter(Class adapter) {
if (adapter == IFile.class || adapter == IResource.class) {
return file;
}
return nul ...