Package sk.iway.iwcm.system.multidomain
Class DomainRequestBeanScope
java.lang.Object
sk.iway.iwcm.system.multidomain.DomainRequestBeanScope
- All Implemented Interfaces:
AutoCloseable
Temporarily installs a domain-specific
RequestBean for legacy code
that resolves domain configuration from the current request context.-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static DomainRequestBeanScopeOpens a request context for the supplied domain, including an empty domain.
-
Method Details
-
open
Opens a request context for the supplied domain, including an empty domain.- Parameters:
domainName- domain used by domain-aware configuration lookups- Returns:
- scope that restores the previous request context when closed
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-