com.openyelp.server.NoGsonExclusionStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsonrpc Show documentation
Show all versions of jsonrpc Show documentation
jsonrpc is a lightweight Rpc Framework
package com.openyelp.server;
import com.google.gson.ExclusionStrategy;
import com.google.gson.FieldAttributes;
import com.openyelp.annotation.NoGson;
public class NoGsonExclusionStrategy implements ExclusionStrategy {
@Override
public boolean shouldSkipField(FieldAttributes f) {
NoGson gson= f.getAnnotation(NoGson.class);
if(gson!=null){
return true;
}else{
return false;
}
}
@Override
public boolean shouldSkipClass(Class> clazz) {
// TODO Auto-generated method stub
return false;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy