org.szegedi.spring.web.jsflow
Interface SecurityDomainFactory


public interface SecurityDomainFactory

Classes implementing this interface can be plugged into the ScriptStorage to provide creation of Rhino security domain objects for scripts. I.e. to use it with a custom context factory that uses Rhino's PolicySecurityController, you could implement this interface so that it returns CodeSource objects based on the resource URL.

Version:
$Id: $
Author:
Attila Szegedi

Method Summary
 java.lang.Object createSecurityDomain(org.springframework.core.io.Resource scriptResource)
          Create a Rhino security domain object for the script specified as the resource.
 

Method Detail

createSecurityDomain

java.lang.Object createSecurityDomain(org.springframework.core.io.Resource scriptResource)
Create a Rhino security domain object for the script specified as the resource.

Parameters:
scriptResource - the resource identifying the script
Returns:
a security domain object.