org.apache.myfaces.extensions.cdi.core.api.resource.bundle
Annotation Type Bundle


@Documented
@Retention(value=RUNTIME)
@Target(value={TYPE,CONSTRUCTOR,METHOD,FIELD,PARAMETER})
public @interface Bundle

Optional to specify a different bundle name


Optional Element Summary
 String name
          Esp. useful if the class which is mapped to the resource-bundle has a different name and can't be mapped to the bundle via convention.
 Class<?> value
          Allows to specify the class which is mapped to the resource-bundle
 

value

public abstract Class<?> value
Allows to specify the class which is mapped to the resource-bundle

Returns:
class which represents the resource-bundle
Default:
java.lang.Class.class

name

public abstract String name
Esp. useful if the class which is mapped to the resource-bundle has a different name and can't be mapped to the bundle via convention. #name allows to explicitly specify the name of the bundle.

Returns:
the overridden name which should be used to identify the resource-bundle
Default:
""


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