public abstract class AbstractAnnotationRegistry extends Object
Constructor and Description |
---|
AbstractAnnotationRegistry() |
Modifier and Type | Method and Description |
---|---|
protected void |
fireEvent(Class<?> annotationClass,
Object event)
Invokes the registered beans' methods passing them the space mode change event.
|
void |
registerAnnotation(Class<?> annotation,
Object object,
Method method)
Registers the bean as a listener for a event specified by the annotation.
|
protected abstract void |
validateMethod(Class<?> annotation,
Method method) |
public void registerAnnotation(Class<?> annotation, Object object, Method method) throws IllegalArgumentException
annotation
- The annotation that specifies the event the bean is registered to.object
- The bean instance.method
- The bean's method to invoke when the event fires.IllegalArgumentException
- When the specified method has invalid arguments or annotationCopyright © GigaSpaces.