cuba
Class AbstractComponent

java.lang.Object
  extended by cuba.AbstractComponent
All Implemented Interfaces:
ComponentI
Direct Known Subclasses:
AbstractAnnotatedComponent

public abstract class AbstractComponent
extends java.lang.Object
implements ComponentI

Base class for component implementation classes, providing compatibility with CUBA 1. The functions in here are not mandatory any more in CUBA 2. The class doesn't provide annotations for the lifecycle methods to keep it suitable for JDK 1.4 environments. If you prefer annotation-based component definitions, use derived class AbstractAnnotatedComponent instead.


Constructor Summary
AbstractComponent()
           
 
Method Summary
 void drop()
          Empty
 ComponentContextI getContext()
          Returns the component's local context, provided by the container on setContext(cuba.ComponentContextI).
 void init()
          Empty
 void setContext(ComponentContextI context)
          Stores the provided context in a member variable which can be accessed by getContext()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractComponent

public AbstractComponent()
Method Detail

init

public void init()
Empty

Specified by:
init in interface ComponentI

drop

public void drop()
Empty

Specified by:
drop in interface ComponentI

setContext

public void setContext(ComponentContextI context)
                throws ComponentException
Stores the provided context in a member variable which can be accessed by getContext()

Specified by:
setContext in interface ComponentI
Throws:
ComponentException

getContext

public ComponentContextI getContext()
Returns the component's local context, provided by the container on setContext(cuba.ComponentContextI).