예제 #1
0
 /**
  * Sets the collection type bound to this component.
  *
  * @param type the {@link Collection} or {@link Map} class or subclass
  * @return this
  */
 public T collection(Class<?> type) {
   getConfig().setCollection(type.getName());
   return me();
 }
예제 #2
0
 /**
  * Sets the class bound to this component.
  *
  * @param type the class
  * @return this
  */
 public T type(Class<?> type) {
   getConfig().setType(type.getName());
   return me();
 }