org.apache.avalon.phoenix.interfaces
Interface Application

All Known Implementing Classes:
DefaultApplication

public interface Application

The Application is a self-contained component that performs a specific function. Example ServerApplications may be a Mail Server, File Server, Directory Server etc. Example JesktopApplications may be a Spreadsheet program, browser, mail client Example WebApplications may be a particular website or application within a website

Author:
Peter Donald

Field Summary
static String ROLE
          Role String for interface
 
Method Summary
 Object getBlock(String name)
          Retrieve Block with specified name.
 String[] getBlockNames()
          Retrieve names of Blocks contained in application.
 void setApplicationContext(ApplicationContext context)
          Set the context in which the Application is "executed".
 

Field Detail

ROLE

public static final String ROLE
Role String for interface
Method Detail

setApplicationContext

public void setApplicationContext(ApplicationContext context)
Set the context in which the Application is "executed".
Parameters:
context - the applications context

getBlockNames

public String[] getBlockNames()
Retrieve names of Blocks contained in application.
Returns:
 

getBlock

public Object getBlock(String name)
Retrieve Block with specified name. If no such block exists a null will be returned.
Parameters:
name - the name of block to retrieve
Returns:
the coresponding block or null if none


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.