Class DemoSystem
java.lang.Object
com.levigo.jadice.web.demo.common.server.DemoSystem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidattach(jakarta.servlet.ServletContext context, DemoSystem demoSystem) Attach a givenDemoSystemimplementation with theServletContext.protected abstract voidstatic DemoSystemget(jakarta.servlet.ServletContext context) Retrieve the aDemoSysteminstance associated with the givenServletContext.final BasicFileUploadServicefinal voidshutdown()
-
Constructor Details
-
DemoSystem
protected DemoSystem()
-
-
Method Details
-
get
Retrieve the aDemoSysteminstance associated with the givenServletContext. If noDemoSystemhas been associated with theServletContextthis method will returnnull. If aDemoSysteminstance other than aDemoSysteminstance has been associated with the givenServletContext, anIllegalStateExceptionwill be thrown.- Parameters:
context-- Returns:
- the DemoSystem
- Throws:
IllegalStateException- if noDemoSysteminstance has been associated with the givenServletContextIllegalArgumentException- if context is null
-
attach
Attach a givenDemoSystemimplementation with theServletContext.- Parameters:
context- the targetServletContextdemoSystem- theDemoSystemimplementation to be associated with theServletContext
-
getFileUploadservice
-
shutdown
public final void shutdown() -
doShutdown
protected abstract void doShutdown()
-