package br.com.d4n.mvo.ioc.scan;

/*
 * #%L
 * mvo4j
 * %%
 * Copyright (C) 2012 - 2015 DevFor Ninjas
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * #L%
 */

import java.lang.annotation.Annotation;
import java.util.Collection;

import br.com.d4n.mvo.core.BeanMetaDataWrapper;
import br.com.d4n.mvo.core.DefaultBeanMetaData;
import br.com.d4n.mvo.core.WriteableMetaData;
import br.com.d4n.mvo.ioc.ConfigurationException;
import br.com.d4n.mvo.ioc.ContainerConfig;

@SuppressWarnings("rawtypes")
public interface BeanMetaDataFactory<M extends DefaultBeanMetaData, A extends Annotation> {

	Class<?> getBeanObjectType();

	Class<A> getBeanAnnotationType();

	WriteableMetaData newDefaultPropertyMap(ContainerConfig<?> containerConfig) throws ConfigurationException;

	BeanMetaDataWrapper<M> createBeanMetaData(WriteableMetaData propertyMap, Class<?> beanType,
			boolean readAnnotationAttributes) throws ConfigurationException;

	Collection<Class<?>> scan(Scanner scanner, String[] packagesToScan);

	Class<M> getBeanMetaDataType();
}