se.jbee.inject.bootstrap.Module Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of silk-di Show documentation
Show all versions of silk-di Show documentation
Silk Java dependency injection framework
/*
* 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