MentaContainer

Rev

Rev 95 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
57 soliveira 1
package org.mentacontainer;
2
 
3
public enum Scope {
4
 
5
        /**
6
         * The container calls component.get() on every request for the component, returning always new instances.
7
         */
8
        NONE,
9
 
10
        /**
11
         * The container calls component.get() only once and caches the value, returning always the same instance.
12
         */
13
        SINGLETON,
14
 
15
        /**
16
         * The container calls component.get() and caches the value on a thread local, so the same thread will always get the same instance.
17
         */
18
        THREAD
19
}