|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.jonas.web.base.osgi.httpservice.HttpServiceFactory<T>
T
- the web container service class.public abstract class HttpServiceFactory<T extends BaseWebContainerService>
ServiceFactory to create HttpService
.
Constructor Summary | |
---|---|
HttpServiceFactory(T webContainerService)
Constructor. |
Method Summary | |
---|---|
protected abstract JOnASHttpService |
buildHttpServiceImpl(org.osgi.framework.Bundle callerBundle,
T webContainerService)
Build an implementation of the Http service. |
Object |
getService(org.osgi.framework.Bundle callerBundle,
org.osgi.framework.ServiceRegistration registration)
Creates a new HttpService object. |
protected String |
getWorkDirectory()
|
void |
setWorkDirectory(String workDir)
Set the name of the working directory. |
void |
ungetService(org.osgi.framework.Bundle callerBundle,
org.osgi.framework.ServiceRegistration registration,
Object service)
Releases a service object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpServiceFactory(T webContainerService)
webContainerService
- the web container service to use.Method Detail |
---|
public Object getService(org.osgi.framework.Bundle callerBundle, org.osgi.framework.ServiceRegistration registration)
HttpService
object.
The Framework invokes this method the first time the specified bundle requests
a service object using the BundleContext.getService(ServiceReference) method.
The service factory can then return a specific service object for each bundle.
The Framework caches the value returned (unless it is null), and will return the
same service object on any future call to BundleContext.getService from the same bundle.
getService
in interface org.osgi.framework.ServiceFactory
callerBundle
- The bundle using the service.registration
- The ServiceRegistration object for the service.
protected abstract JOnASHttpService buildHttpServiceImpl(org.osgi.framework.Bundle callerBundle, T webContainerService)
callerBundle
- The bundle using the service.webContainerService
- the web container service instance
public void ungetService(org.osgi.framework.Bundle callerBundle, org.osgi.framework.ServiceRegistration registration, Object service)
ungetService
in interface org.osgi.framework.ServiceFactory
callerBundle
- The bundle releasing the service.registration
- The ServiceRegistration object for the service.service
- The service object returned by a previous call
to the ServiceFactory.getService method.public void setWorkDirectory(String workDir)
workDir
- The name of the working directory.protected String getWorkDirectory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |