org.apache.beehive.netui.pageflow.adapter
Interface Adapter

All Known Subinterfaces:
ServletContainerAdapter
All Known Implementing Classes:
DefaultServletContainerAdapter

public interface Adapter

Base interface for all discoverable adapters.


Method Summary
 boolean accept(AdapterContext context)
          Called upon the initialization, to decide whether this Adapter instance should become active.
 void setContext(AdapterContext context)
          Set the generic AdapterContext.
 

Method Detail

accept

boolean accept(AdapterContext context)
Called upon the initialization, to decide whether this Adapter instance should become active.

Parameters:
context - the context being initialized.
Returns:
true if the environment is appropriate for this Adapter, and it should become active.

setContext

void setContext(AdapterContext context)
Set the generic AdapterContext.