jodd.petite.scope.ThreadLocalScope Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jodd-petite Show documentation
Show all versions of jodd-petite Show documentation
Jodd Petite is slick and lightweight DI container that uses annotations and supports sufficient most of features offered by other containers.
// Copyright (c) 2003-2014, Jodd Team (jodd.org). All Rights Reserved.
package jodd.petite.scope;
import jodd.petite.BeanData;
import jodd.petite.BeanDefinition;
import java.util.HashMap;
import java.util.Map;
/**
* Thread local Petite bean scope. Holds beans in thread local scopes.
* Be careful with this scope, if you do not have control on threads!
* For example, app servers may have a thread pools, so threads may not
* finish when expected. ThreadLocalScope can not invoke destroy methods.
*/
public class ThreadLocalScope implements Scope {
protected static ThreadLocal
© 2015 - 2025 Weber Informatics LLC | Privacy Policy