You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shiro.apache.org by "Les Hazlewood (JIRA)" <ji...@apache.org> on 2009/08/28 18:48:32 UTC
[jira] Resolved: (SHIRO-86) Add Builder design pattern for
arbitrary Subject construction
[ https://issues.apache.org/jira/browse/SHIRO-86?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Les Hazlewood resolved SHIRO-86.
--------------------------------
Resolution: Fixed
created org.apache.shiro.subject.Subject.Builder and org.apache.shiro.web.subject.WebSubject.Builder (both nested classes of the parent interfaces per mailing list discussion)
> Add Builder design pattern for arbitrary Subject construction
> -------------------------------------------------------------
>
> Key: SHIRO-86
> URL: https://issues.apache.org/jira/browse/SHIRO-86
> Project: Shiro
> Issue Type: Improvement
> Components: Subject
> Affects Versions: 1.0
> Reporter: Les Hazlewood
> Assignee: Les Hazlewood
> Fix For: 1.0
>
>
> The latest SecurityManager API allows Subject construction via a Map context - the context is then delegated to a SubjectFactory which uses it to build a Subject instance.
> It would be nice to have a Builder implementation that builds up the context map automatically based on method invocations and in turn calls the SecurityManager method. This allows end-users to construct any Subject instance arbitrarily without knowing the context Key values required or knowledge of underlying SubjectFactory implementations.
> Other parts of Shiro's own code can utilize this Builder implementation directly to simplify code (e.g. ShiroFilter).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.