@Target(value={TYPE,ANNOTATION_TYPE})
public @interface Instantiate
@Component
@Instantiate
public class MyComponent {
// ...
}
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
name
Optional attribute to set the instance name.
|
public abstract java.lang.String name
@Component
@Instantiate("my-default-component")
public class MyComponent {
// ...
}
Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.