Class DemoSystem
java.lang.Object
com.levigo.jadice.web.demo.common.server.DemoSystem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
attach
(jakarta.servlet.ServletContext context, DemoSystem demoSystem) Attach a givenDemoSystem
implementation with theServletContext
.protected abstract void
static DemoSystem
get
(jakarta.servlet.ServletContext context) Retrieve the aDemoSystem
instance associated with the givenServletContext
.final BasicFileUploadService
final void
shutdown()
-
Constructor Details
-
DemoSystem
protected DemoSystem()
-
-
Method Details
-
get
Retrieve the aDemoSystem
instance associated with the givenServletContext
. If noDemoSystem
has been associated with theServletContext
this method will returnnull
. If aDemoSystem
instance other than aDemoSystem
instance has been associated with the givenServletContext
, anIllegalStateException
will be thrown.- Parameters:
context
-- Returns:
- the DemoSystem
- Throws:
IllegalStateException
- if noDemoSystem
instance has been associated with the givenServletContext
IllegalArgumentException
- if context is null
-
attach
Attach a givenDemoSystem
implementation with theServletContext
.- Parameters:
context
- the targetServletContext
demoSystem
- theDemoSystem
implementation to be associated with theServletContext
-
getFileUploadservice
-
shutdown
public final void shutdown() -
doShutdown
protected abstract void doShutdown()
-