@Override
protected void setupXML(XMLEncoder enc) {
super.setupXML(enc);
PropertyDescriptor[] pdArr;
try {
pdArr = Introspector.getBeanInfo(VirtualFileSystemLink.class)
.getPropertyDescriptors();
} catch (IntrospectionException e) {
logger.error("I don't know what to do here", e);
throw new RuntimeException(e);
}
for (int x = 0; x < pdArr.length; x++) {
// logger.debug("PropertyDescriptor - VirtualFileSystemLink - "
// + pdArr[x].getDisplayName());
if (transientListLink.contains(pdArr[x].getName())) {
pdArr[x].setValue("transient", Boolean.TRUE);
}
}
enc.setPersistenceDelegate(VirtualFileSystemLink.class,
new DefaultPersistenceDelegate(new String[] { "username",
"group", "linkPath" }));
}
VirtualFileSystemLink.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:drftpd3
作者:
评论列表
文章目录