org.apache.myfaces.extensions.cdi.alternative.implementation.api
Annotation Type AlternativeImplementation


@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
public @interface AlternativeImplementation

Only for the config and SPI of CODI! Annotate a bean which implements a SPI of CODI or extends a config class of CODI. In case of implementing a SPI it's required to register the custom class. So it will be checked by the ServiceLoader. In case of extending a config class of CODI, you have to do the same. However, since the config classes aren't abstract or have a special interface, it's required to register the custom class in a file called: META-INF/services/org.apache.myfaces.extensions.cdi.core.api.config.CodiConfig

Author:
Gerhard Petracek



Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.