KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jodd > petite > scope > Scope


1 // Copyright (c) 2003-2007, Jodd Team (jodd.sf.net). All Rights Reserved.
2

3 package jodd.petite.scope;
4
5 /**
6  * Petite container bean scope. Scopes actually represents wrapper over none, one or many internal
7  * bean pools. Which pool is used depends on scopes behaviour and external data.
8  * <p>
9  * Scopes are instantiated on their usage and stored within one container.
10  */

11 public interface Scope {
12
13     /**
14      * Lookups for bean name.
15      */

16     public Object JavaDoc lookup(String JavaDoc name);
17
18     /**
19      * Registeres bean within current scope.
20      */

21     public void register(String JavaDoc name, Object JavaDoc object);
22 }
23
Popular Tags