public class AutoRegisterAction extends Object implements ClassLoadAction
Register
annotation.ClassLoadAction
,
Register
Constructor and Description |
---|
AutoRegisterAction() |
Modifier and Type | Method and Description |
---|---|
Class<? extends Annotation> |
getTrigger()
Returns the trigger-annotation which is used to identify classes of
interest.
|
void |
handle(MutableGlobalContext ctx,
Class<?> clazz)
Invoked for each class which contains the trigger-annotation.
|
public Class<? extends Annotation> getTrigger()
ClassLoadAction
getTrigger
in interface ClassLoadAction
public void handle(MutableGlobalContext ctx, Class<?> clazz) throws Exception
ClassLoadAction
handle
in interface ClassLoadAction
ctx
- the context in which the part should be insertedclazz
- the class to processException
- if the given class cannot be instantiated or registered as desiredCopyright © 2018. All rights reserved.