All Downloads are FREE. Search and download functionalities are using the official Maven repository.

se.jbee.inject.bootstrap.Module Maven / Gradle / Ivy

There is a newer version: 0.6
Show newest version
/*
 *  Copyright (c) 2012, Jan Bernitt 
 *			
 *  Licensed under the Apache License, Version 2.0, http://www.apache.org/licenses/LICENSE-2.0
 */
package se.jbee.inject.bootstrap;

import java.lang.reflect.Constructor;
import java.lang.reflect.Method;

/**
 * {@link Bindings} are defined with {@link Module}s while {@link Bundle} are used to group multiple
 * {@link Module}s and {@link Bundle}s what allows to build graphs of {@link Bundle}s with
 * {@link Module}s as leafs.
 * 
 * @see Bundle
 * @see PresetModule
 * 
 * @author Jan Bernitt ([email protected])
 */
public interface Module {

	/**
	 * @param bindings
	 *            use to declare made bound within this {@link Module}.
	 * @param inspector
	 *            the chosen strategy to pick the {@link Constructor}s or {@link Method}s used to
	 *            create instances.
	 */
	void declare( Bindings bindings, Inspector inspector );

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy