On Tue, 19 Feb 2002 00:06, Leo Sutic wrote: > > From: Peter Donald [mailto:[EMAIL PROTECTED]] > > > > different scope of resource allocation is treated as different scopes? > > But these scopes coexist in the same component, and you assume that > there are only two - request and static.
do i ? Have a look at the javadoc at /jakarta-avalon/src/java/org/apache/avalon/framework/context/Context.java > I can think of many more. traditionally there is 4 in server related literature. > Each scope requires a specific method - one method for static, one > for request, and so on. Nope - two methods of access. General session scop is accessible from context and world scope and person scope are merged. > You might as well split resource allocation methods along first letter > of class name as along scope. hmmmm. > I want you to convince me that the two sets, static resource allocation and > per-request allocation contains all possible scopes of resource allocation, > and that, since one is a subset of the other, dividing them that way > is optimal for every possible application. Look at existing APIs is the easiest way - servlets being a good example that you are familiar with. There is a ServletContext, and there is a request object. The request object has access to session object. -- Cheers, Pete ----------------------------------------------- | If you turn on the light quickly enough, | | you can see what the dark looks like. | ----------------------------------------------- -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
