jodd.petite.scope
Interface Scope

All Known Implementing Classes:
DefaultScope, ProtoScope, SessionScope, SingletonScope

public interface Scope

Petite container bean scope. Scopes actually represents wrapper over none, one or many internal bean pools. Which pool is used depends on scopes behaviour and external data.

Scopes are instantiated once on their first usage and stored within one container.


Method Summary
 java.lang.Object lookup(java.lang.String name)
          Lookups for bean name.
 void register(java.lang.String name, java.lang.Object object)
          Registers the bean within the current scope.
 void remove(java.lang.String name)
          Removes the bean from the scope entirely.
 void replaceIn(java.lang.String name, ScopeReplacer scopeReplacer)
          Replaces the bean in current scope.
 

Method Detail

lookup

java.lang.Object lookup(java.lang.String name)
Lookups for bean name.


register

void register(java.lang.String name,
              java.lang.Object object)
Registers the bean within the current scope.


remove

void remove(java.lang.String name)
Removes the bean from the scope entirely.


replaceIn

void replaceIn(java.lang.String name,
               ScopeReplacer scopeReplacer)
Replaces the bean in current scope. Second parameter is provided by container.



Copyright ©2008 Jodd Team