Skip to content

Commit

Permalink
Merge pull request #1467 from scireum/feature/ymo/helper-auto
Browse files Browse the repository at this point in the history
autoregister helperFactory
  • Loading branch information
ymo-sci authored Oct 18, 2024
2 parents abf725e + 156cea5 commit ceff24b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/sirius/web/security/HelperFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

package sirius.web.security;

import sirius.kernel.di.std.AutoRegister;
import sirius.kernel.di.std.Priorized;

import javax.annotation.Nonnull;
Expand All @@ -16,14 +17,15 @@
* Helpers are used by the {@link ScopeInfo} to perform certain tasks.
* <p>
* Note that a helper is created <b>once</b> per scope and not per user or request. Everything that is specific
* to the user or request has the be in the request itself or the session.
* to the user or request has to be in the request itself or the session.
* <p>
* Variables can be annotated using {@link HelperConfig} and will be automatically filled with the value set in the
* scope config. HOWEVER: Note that user specific overwrites of this config value cannot be applied. These values
* have to be fetched using {@link UserContext#getSettings()}.
*
* @param <H> the type of helpers created by this factory
*/
@AutoRegister
public interface HelperFactory<H> extends Priorized {

@Override
Expand Down

0 comments on commit ceff24b

Please sign in to comment.