org.araneaframework.core
Class BaseEnvironment

java.lang.Object
  extended byorg.araneaframework.core.BaseEnvironment
All Implemented Interfaces:
Environment, Serializable
Direct Known Subclasses:
StandardEnvironment

public abstract class BaseEnvironment
extends Object
implements Environment

Base Environment with requireEntry implementation.

Author:
Jevgeni Kabanov (ekabanov at araneaframework dot org)
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.araneaframework.Environment
ENVIRONMENT_KEY
 
Constructor Summary
BaseEnvironment()
           
 
Method Summary
 Object requireEntry(Object key)
          Does the same as Environment.getEntry(Object), but throws a NoSuchEnvironmentEntryException if entry cannot be found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.araneaframework.Environment
getEntry
 

Constructor Detail

BaseEnvironment

public BaseEnvironment()
Method Detail

requireEntry

public Object requireEntry(Object key)
                    throws NoSuchEnvironmentEntryException
Description copied from interface: Environment
Does the same as Environment.getEntry(Object), but throws a NoSuchEnvironmentEntryException if entry cannot be found.

Specified by:
requireEntry in interface Environment
Throws:
NoSuchEnvironmentEntryException - If environment entry could not be found.