Annotation Type Dependency


  • @Retention(RUNTIME)
    @Target(ANNOTATION_TYPE)
    public @interface Dependency
    This annotation is used within composite portlet configuration annotations to represent dependencies the portlet may have on external resources. The resources can represent client-side prerequisites such as JavaScript libraries or stylesheet resources that are shared among portlets.

    This annotation cannot be used as a stand-alone portlet annotation.

    Since:
    3.0
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String name
      The resource name.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String scope
      The scope name.
      String version
      The minimum acceptable module version.
    • Element Detail

      • name

        String name
        The resource name.
        Returns:
        The resource name
      • scope

        String scope
        The scope name.
        Returns:
        The name of the scope containing the resource
        Default:
        ""
      • version

        String version
        The minimum acceptable module version.
        Returns:
        The minimum acceptable module version
        Default:
        ""