FileDocCategorySizeDatePackage
ServerComponent.javaAPI DocApache Lucene 2.1.01771Wed Feb 14 10:46:06 GMT 2007org.apache.lucene.gdata.server.registry

ServerComponent

public interface ServerComponent
To Register a class as a component in the {@link org.apache.lucene.gdata.server.registry.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).

see
org.apache.lucene.gdata.server.registry.GDataServerRegistry
author
Simon Willnauer

Fields Summary
Constructors Summary
Methods Summary
public abstract voiddestroy()
will be called when the registry is going down e.g. when the {@link GDataServerRegistry#destroy()} method is called.

public abstract voidinitialize()
will be call when the component is registered. if this fails the server must not startup.