Code example for Type

0
	 * Constructor 
	 * @param factory bean handler factory 
	 * @param type bean type 
	 */ 
	public ArrayBeanHandler(Beans factory, Type type) {
		super(factory, type);
 
		if (!Types.isArrayType(type)) {
			throw new IllegalArgumentException(type + " is not a array type");
		} 
	} 
 
	@Override 
	protected int getSize(T array) {
		return Array.getLength(array);
	} 
	 
	@Override 
	protected Object getElement(T array, int index) {
		if (index < 0 || index >= getSize(array)) {
			return null;