se.jbee.inject.Repository 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;
/**
* Manages the already created instances.
*
* @author Jan Bernitt ([email protected])
*
*/
public interface Repository {
/**
* @return Existing instances are returned, non-existing are received from the given
* {@link Injectable} and stocked in the scope of this {@link Repository} (forever if it
* is an application wide singleton).
*/
T serve( Demand demand, Injectable injectable );
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy