org.apache.lucene.gdata.server.registry
Interface ServerComponent

All Known Subinterfaces:
AuthenticationController, SearchComponent, StorageController
All Known Implementing Classes:
BlowfishAuthenticationController, DB4oController, DefaultRequestHandlerFactory, IndexController, RequestHandlerFactory, ServiceFactory, StorageCoreController

public interface ServerComponent

To Register a class as a component in the GDataServerRegistry the class or a super class must implements this interface.

ServerComponent defines a method initialize and destroy. initialize will be called when the component is registered and destroy when the registry is destroyed (usually at server shut down).

Author:
Simon Willnauer
See Also:
GDataServerRegistry

Method Summary
 void destroy()
          will be called when the registry is going down e.g.
 void initialize()
          will be call when the component is registered.
 

Method Detail

initialize

void initialize()
will be call when the component is registered. if this fails the server must not startup.


destroy

void destroy()
will be called when the registry is going down e.g. when the GDataServerRegistry.destroy() method is called.



Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.