public class DynamicResourceRegistry extends Object implements ISessionLifecycle
| Modifier and Type | Method and Description |
|---|---|
static DynamicResourceRegistry |
getInstance()
Returns the singleton instance.
|
org.springframework.core.io.Resource |
getResource(String path)
Retrieves the resource registered to the specified path.
|
void |
onSessionCreate(Session session)
Invoked after a session is created and its page has been initialized but not yet
materialized.
|
void |
onSessionDestroy(Session session)
Remove the session's associated resource registry, if any.
|
void |
registerResource(String path,
org.springframework.core.io.Resource resource)
Registers or unregisters a resource.
|
public static DynamicResourceRegistry getInstance()
public org.springframework.core.io.Resource getResource(String path)
path - The resource path.public void registerResource(String path, org.springframework.core.io.Resource resource)
path - The resource path.resource - The resource to register or, if null, any resource registered under this name
will be unregistered.public void onSessionCreate(Session session)
ISessionLifecycleonSessionCreate in interface ISessionLifecyclesession - The session.public void onSessionDestroy(Session session)
onSessionDestroy in interface ISessionLifecyclesession - The session.ISessionLifecycle.onSessionDestroy(org.fujion.websocket.Session)Copyright © 2018 Regenstrief Center for Biomedical Informatics. All rights reserved.