Annotation Interface DefinitionByType


@Target(TYPE) @Retention(RUNTIME) public @interface DefinitionByType
This annotation can be used to provide a default definition of the component when we try to access it by type.
Version:
$Id$
Author:
Nicolas Filotto
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<? extends ExoContainer>[]
    The list of target ExoContainer on which we allow the component to be automatically registered.
    The default implementation to use in case the annotation has not been added on a concrete class.
  • Element Details

    • type

      Class<?> type
      The default implementation to use in case the annotation has not been added on a concrete class.
      Default:
      void.class
    • target

      Class<? extends ExoContainer>[] target
      The list of target ExoContainer on which we allow the component to be automatically registered. By default, we allow the kernel to register the component on the PortalContainer and StandaloneContainer for respectively the portal and standalone modes.
      Default:
      {org.exoplatform.container.PortalContainer.class, org.exoplatform.container.StandaloneContainer.class}