com.buglabs.osgi.sewing
Class SewingServiceImpl

java.lang.Object
  extended by com.buglabs.osgi.sewing.SewingServiceImpl
All Implemented Interfaces:
ISewingService

public class SewingServiceImpl
extends java.lang.Object
implements ISewingService


Constructor Summary
SewingServiceImpl(HttpService httpService)
           
 
Method Summary
 void register(BundleContext context, java.lang.String alias, SewingHttpServlet sewingServlet)
          Registers your SewingHttpServlet and initializes the framework for your application This will register the servlet at the alias you pass in as well as the resources for images (/alias.images), stylesheets, and javascripts
 void unregister(SewingHttpServlet sewingServlet)
          Pass the instance of the servlet you sent in to the register request to unregister the servlet and it's resources
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SewingServiceImpl

public SewingServiceImpl(HttpService httpService)
Method Detail

register

public void register(BundleContext context,
                     java.lang.String alias,
                     SewingHttpServlet sewingServlet)
Description copied from interface: ISewingService
Registers your SewingHttpServlet and initializes the framework for your application This will register the servlet at the alias you pass in as well as the resources for images (/alias.images), stylesheets, and javascripts

Specified by:
register in interface ISewingService
Parameters:
context - the bundle context for the your web application
alias - the name in the url for your application, must begin with a /, i.e. "/MyWebApplication"
sewingServlet - your implementation of SewingHttpServlet

unregister

public void unregister(SewingHttpServlet sewingServlet)
Description copied from interface: ISewingService
Pass the instance of the servlet you sent in to the register request to unregister the servlet and it's resources

Specified by:
unregister in interface ISewingService