net.sf.mmm.util.component
Class AbstractComponent

java.lang.Object
  extended by net.sf.mmm.util.component.AbstractComponent
Direct Known Subclasses:
AbstractLoggable, MarkupUtil, PojoDescriptorConfigurationImpl

public abstract class AbstractComponent
extends Object

This is the abstract base class for a component that needs initialization.

Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Constructor Summary
AbstractComponent()
          The constructor.
 
Method Summary
protected  void doInitialize()
          This method performs the actual initialization.
protected  InitializationState getInitializationState()
          This method gets the InitializationState of this component.
 void initialize()
          This method initializes this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractComponent

public AbstractComponent()
The constructor.

Method Detail

initialize

@PostConstruct
public final void initialize()
This method initializes this class. It has to be called after construction and injection is completed.


doInitialize

protected void doInitialize()
This method performs the actual initialization. It is called when initialize() is invoked for the first time.
ATTENTION:
When you override this method from a sub-class you need to do a super.doInitialize().


getInitializationState

protected final InitializationState getInitializationState()
This method gets the InitializationState of this component.

Returns:
the initializationState
See Also:
initialize(), InitializationState.requireInitilized(), InitializationState.requireNotInitilized()


Copyright © 2001-2008 mmm-Team. All Rights Reserved.