Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.axis2.engine
Interface ServiceLifeCycle

    public interface ServiceLifeCycle

When you want to initialize database connections , starting threads and etc.. at the time you deploy service (similar to loadonstartup). You need to implement this interface and add additional (optional) attribute into services.xml

Method Summary
`void` | `shutDown(ConfigurationContext configctx, AxisService service)` this will be called during the system shut down time.
`void` | `startUp(ConfigurationContext configctx, AxisService service)` this will be called during the deployement time of the service.

Method Detail

### startUp

    void startUp(ConfigurationContext configctx,
                 AxisService service)

  this will be called during the deployement time of the service. irrespective of the service scope this method will be called

### shutDown

    void shutDown(ConfigurationContext configctx,
                  AxisService service)

  this will be called during the system shut down time. irrespective of the service scope this method will be called

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.