MentaContainer

Rev

Rev 58 | Rev 76 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 58 Rev 70
Line 129... Line 129...
129
         */
129
         */
130
        public boolean check(String key);
130
        public boolean check(String key);
131
       
131
       
132
        /**
132
        /**
133
         * Clear all cached instances for that scope. If you have a thread pool for example you will
133
         * Clear all cached instances for that scope. If you have a thread pool for example you will
134
         * have to clear the THREAD scope when your thread is returned to the pool.
-
 
-
 
134
         * have to clear the THREAD scope when your thread is returned to the pool. It does not make
-
 
135
         * sense to clear a NONE scope (the method returns doing nothing).
135
         *
136
         *
136
         * @param scope The scope to be cleared.
137
         * @param scope The scope to be cleared.
137
         */
138
         */
138
        public void clear(Scope scope);
139
        public void clear(Scope scope);
139
       
140
       
140
        /**
141
        /**
141
         * Clear a single key from cache and return the instance that was cached.
142
         * Clear a single key from cache and return the instance that was cached.
142
         *
143
         *
143
         * @param key The key representing the bean inside the container.
144
         * @param key The key representing the bean inside the container.
144
         * @return The value that was cached and it is not anymore (was cleared)
-
 
-
 
145
         * @return The value that was cached and it is not anymore (was cleared) or null if nothing was cleared
145
         */
146
         */
146
        public <T> T clear(String key);
147
        public <T> T clear(String key);
147
}
148
}