org.locomotive.directory.loco
Class ScopeLookupImpl

java.lang.Object
  |
  +--org.locomotive.directory.loco.ScopeLookupImpl

public class ScopeLookupImpl
extends java.lang.Object
implements ScopeLookup

An implementation of the scope lookup interface that implements scope lookup for request, session and global scoped components.

Version:
$Id: ScopeLookupImpl.java,v 1.2 1999/05/05 10:19:32 gunnar Exp $
Author:
Gunnar Rønning (gunnar@candleweb.no).

Constructor Summary
ScopeLookupImpl(javax.servlet.http.HttpServletRequest request, BeanDirectory beanDirectory)
          Constructor for the scope lookup class.
 
Method Summary
 java.lang.Object getScope(java.lang.String scopeType)
          Return the appropriate object for the requested scope.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScopeLookupImpl

public ScopeLookupImpl(javax.servlet.http.HttpServletRequest request,
                       BeanDirectory beanDirectory)
Constructor for the scope lookup class.
Parameters:
request - The request that is resolving the component, or null if the lookup is not done in the context of a request.
beanDirectory - The BeanDirectory object that acts as the global scope.
Method Detail

getScope

public java.lang.Object getScope(java.lang.String scopeType)
Return the appropriate object for the requested scope.
Specified by:
getScope in interface ScopeLookup
Parameters:
scopeType - The scope type to lookup.
Returns:
Returns the object defining the scope of the scope type.