/******************************************************************************* * Copyright (c) 2012 OpenLegacy Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * OpenLegacy Inc. - initial API and implementation *******************************************************************************/ package org.openlegacy.loaders; import org.openlegacy.EntitiesRegistry; import java.util.Collection; /** * Defines a registry loader which is responsible for loading metadata from the given loaders into the {@link EntitiesRegistry} * * @author Roi Mor * */ public interface RegistryLoader { public void load(EntitiesRegistry<?, ?> entitiesRegistry); void loadSingleClass(EntitiesRegistry<?, ?> entitiesRegistry, Class<?> beanClass, Boolean loadReferences); void setAnnotationLoaders(Collection<ClassAnnotationsLoader> annotationLoaders); void setFieldAnnotationLoaders(Collection<FieldAnnotationsLoader> fieldAnnotationLoaders); void setFieldLoaders(Collection<FieldLoader> fieldLoaders); }