com.acsinet_solutions.util.build
Interface BuildingContext

All Known Implementing Classes:
SimpleBuildingContext

public interface BuildingContext

This interface represents a building context, that is an object that provides services to an initializing building block. It allows an object to make reference to other objects in the build tree if necessary.

Author:
Santiago Arriaga

Method Summary
 void enterObject(java.lang.String name, java.lang.Object block)
          Enter to a given level path
 void exitObject()
          Exit the current level path.
 java.lang.Object getCurrent()
          Get the current building block
 java.lang.Object getRoot()
          Get the root building block
 

Method Detail

getRoot

java.lang.Object getRoot()
Get the root building block

Returns:
A not-null BuildingBlock instance

getCurrent

java.lang.Object getCurrent()
Get the current building block

Returns:
A not-null BuildingBlock instance

enterObject

void enterObject(java.lang.String name,
                 java.lang.Object block)
Enter to a given level path

Parameters:
level - A not-null not-empty valid level value

exitObject

void exitObject()
Exit the current level path. Each call to exitBlock corresponds to a previous call to enterBlock