@Retention(value=CLASS)
@Target(value=TYPE)
public @interface DefineComponent
Example defining a root component, ParentComponent
:
@ParentScoped
@DefineComponent
interface ParentComponent {}
Example defining a child component, ChildComponent
:
@ChildScoped
@DefineComponent(parent = ParentComponent.class)
interface ChildComponent {}
Modifier and Type | Optional Element and Description |
---|---|
java.lang.Class<?> |
parent
Returns the parent of this component, if it exists.
|