Dashboard Builder Commons 6.0.0.Final

org.jboss.dashboard.factory
Interface FactoryLifecycle

All Known Implementing Classes:
BasicFactoryElement, ErrorReport

public interface FactoryLifecycle

This interface is intended to be implemented by objects that, when set in the Factory configuration, receive lifecycle notifications from the Factory.


Method Summary
 void init()
          Called after constructing the instance and before setting the default properties
 void shutdown()
          Called when the Factory is going down, to allow the release of resources.
 void start()
          Called after constructing the instance and setting the default properties.
 void stop()
          Called by the factory before setting a group of properties.
 

Method Detail

init

void init()
          throws Exception
Called after constructing the instance and before setting the default properties

Throws:
Exception

start

void start()
           throws Exception
Called after constructing the instance and setting the default properties. When the Factory is about to set a group of properties, it calls stop, sets the properties and then calls start.

Throws:
Exception

stop

void stop()
          throws Exception
Called by the factory before setting a group of properties. This way the component can simulate a transactional behaviour.

Throws:
Exception

shutdown

void shutdown()
              throws Exception
Called when the Factory is going down, to allow the release of resources.

Throws:
Exception

Dashboard Builder Commons 6.0.0.Final

Copyright © 2012-2013 JBoss by Red Hat. All Rights Reserved.