00001 /* 00002 * Builder.h 00003 * 00004 * Created on: Jul 18, 2013 00005 * Author: samuele 00006 */ 00007 00008 #ifndef BUILDER_H_ 00009 #define BUILDER_H_ 00010 00011 namespace infinispan { 00012 namespace hotrod { 00013 00014 00015 template <class T> class Builder 00016 { 00017 public: 00018 virtual void validate() {}; 00019 virtual T create() = 0; 00020 virtual Builder<T>& read(T& bean) = 0; 00021 virtual ~Builder() {}; 00022 }; 00023 00024 }} //namespace 00025 00026 #endif /* BUILDER_H_ */