Class OptionalSessionValueArgumentBinder

java.lang.Object
io.micronaut.session.binder.OptionalSessionValueArgumentBinder
All Implemented Interfaces:
io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<SessionValue,Optional,io.micronaut.http.HttpRequest<?>>, io.micronaut.core.bind.ArgumentBinder<Optional,io.micronaut.http.HttpRequest<?>>, io.micronaut.core.bind.TypeArgumentBinder<Optional,io.micronaut.http.HttpRequest<?>>, io.micronaut.http.bind.binders.AnnotatedRequestArgumentBinder<SessionValue,Optional>, io.micronaut.http.bind.binders.RequestArgumentBinder<Optional>, io.micronaut.http.bind.binders.TypedRequestArgumentBinder<Optional>

@Singleton @Requires(classes=io.micronaut.http.server.HttpServerConfiguration.class) public class OptionalSessionValueArgumentBinder extends Object implements io.micronaut.http.bind.binders.TypedRequestArgumentBinder<Optional>, io.micronaut.http.bind.binders.AnnotatedRequestArgumentBinder<SessionValue,Optional>
Since:
1.0
Author:
Graeme Rocher
  • Constructor Details

    • OptionalSessionValueArgumentBinder

      public OptionalSessionValueArgumentBinder()
  • Method Details

    • argumentType

      public io.micronaut.core.type.Argument<Optional> argumentType()
      Specified by:
      argumentType in interface io.micronaut.core.bind.TypeArgumentBinder<Optional,io.micronaut.http.HttpRequest<?>>
    • getAnnotationType

      public Class<SessionValue> getAnnotationType()
      Specified by:
      getAnnotationType in interface io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<SessionValue,Optional,io.micronaut.http.HttpRequest<?>>
    • bind

      public io.micronaut.core.bind.ArgumentBinder.BindingResult<Optional> bind(io.micronaut.core.convert.ArgumentConversionContext<Optional> context, io.micronaut.http.HttpRequest<?> source)
      Specified by:
      bind in interface io.micronaut.core.bind.ArgumentBinder<Optional,io.micronaut.http.HttpRequest<?>>