cuba
Class AbstractAnnotatedComponent

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

public class AbstractAnnotatedComponent
extends AbstractComponent

Derivation of AbstractComponent adding annotations to all lifecycle methods. This base class may be used to provide backwards compatibility to CUBA 1 even when moving to annotation-based component definitions.


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

Constructor Detail

AbstractAnnotatedComponent

public AbstractAnnotatedComponent()
Method Detail

init

public void init()
Empty

Specified by:
init in interface ComponentI
Overrides:
init in class AbstractComponent

drop

public void drop()
Empty

Specified by:
drop in interface ComponentI
Overrides:
drop in class AbstractComponent

setContext

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

Specified by:
setContext in interface ComponentI
Overrides:
setContext in class AbstractComponent
Throws:
ComponentException