org.locomotive.directory
Class ScopeStore

java.lang.Object
  |
  +--org.locomotive.directory.ScopeStore

public class ScopeStore
extends java.lang.Object

Data structure for storing and looking up components in a specific scope.

Open issues

This class should be extended with flexible lookup mechanisms for directory contexts and components, so it can be used by and administrative interface to servers.

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

Constructor Summary
ScopeStore()
           
 
Method Summary
 java.lang.Object getComponent(DirectoryContext context, java.lang.String componentName)
          Get a specific component from this scope store.
 void putComponent(DirectoryContext context, java.lang.String componentName, java.lang.Object component)
          Put a specific component into the scope store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScopeStore

public ScopeStore()
Method Detail

getComponent

public java.lang.Object getComponent(DirectoryContext context,
                                     java.lang.String componentName)
Get a specific component from this scope store.
Parameters:
context - The directory context for the component.
componentName - The component's name.
Returns:
Returns the component if found, or null else.

putComponent

public void putComponent(DirectoryContext context,
                         java.lang.String componentName,
                         java.lang.Object component)
Put a specific component into the scope store.
Parameters:
context - The directory context for the component.
componentName - The component's name.
component - The component itself.