Package jakarta.portlet.annotations
Annotation Type ContextPath
-
@Qualifier @Retention(RUNTIME) @Target({METHOD,FIELD,PARAMETER}) public @interface ContextPath
Qualifier that specifies the context root for injection.The injection target type must be
String.This annotation may only be used in
@RequestScopedor@RenderStateScopedbeans.Example:
@Inject @ContextPath
private String namespace;- Since:
- 3.0
- See Also:
getContextPath