eXo Kernel :: Container 2.5.0-GA

org.exoplatform.container.spi
Annotation Type DefinitionByQualifier


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface DefinitionByQualifier

This annotation can be used to provide a default definition of the component when we try to access it thanks to a Qualifier.

Version:
$Id$
Author:
Nicolas Filotto

Required Element Summary
 Class<? extends Annotation> qualifier
          The key to use for the auto registration of a component that we would like to be able to retrieve thanks to a Qualifier
 
Optional Element Summary
 Class<? extends ExoContainer>[] target
          The list of target ExoContainer on which we allow the component to be automatically registered.
 Class<?> type
          The default implementation to use in case the annotation has not been added on a concrete class.
 

Element Detail

qualifier

public abstract Class<? extends Annotation> qualifier
The key to use for the auto registration of a component that we would like to be able to retrieve thanks to a Qualifier

type

public abstract Class<?> type
The default implementation to use in case the annotation has not been added on a concrete class.

Default:
void.class

target

public abstract 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}

eXo Kernel :: Container 2.5.0-GA

Copyright © 2014 eXo Platform SAS. All Rights Reserved.