|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.gdata.server.ServiceFactory
public class ServiceFactory
The ServiceFactory
creates Service
implementations to access
the GData - Server components.
This class should not be access directy. The class will be registered in the GDataServerRegistry
.
Use GDataServerRegistry.lookup(Class, ComponentType)
Constructor Summary | |
---|---|
ServiceFactory()
public constructor to enable loading via the registry |
Method Summary | |
---|---|
void |
destroy()
will be called when the registry is going down e.g. |
AdminService |
getAdminService()
Creates a AdminService instance |
Service |
getService(GDataRequest request)
Creates a Service instance. |
void |
initialize()
will be call when the component is registered. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceFactory()
Component
,
GDataServerRegistry
Method Detail |
---|
public Service getService(GDataRequest request)
Service
instance.
request
- - the request for this service
public AdminService getAdminService()
AdminService
instance
public void initialize()
ServerComponent
initialize
in interface ServerComponent
ServerComponent.initialize()
public void destroy()
ServerComponent
GDataServerRegistry.destroy()
method is called.
destroy
in interface ServerComponent
ServerComponent.destroy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |