Class SingleArgumentMethodEventListener
java.lang.Object
org.apache.shiro.event.support.SingleArgumentMethodEventListener
- All Implemented Interfaces:
EventListener,TypedEventListener
A event listener that invokes a target object's method that accepts a single event argument.
- Since:
- 1.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif the listener instance can process the specified event object,falseotherwise.protected ClassgetMethodArgumentType(Method method) voidHandles the specified event.
-
Constructor Details
-
SingleArgumentMethodEventListener
-
-
Method Details
-
getTarget
-
getMethod
-
accepts
Description copied from interface:EventListenerReturnstrueif the listener instance can process the specified event object,falseotherwise.- Specified by:
acceptsin interfaceEventListener- Parameters:
event- the event object to test- Returns:
trueif the listener instance can process the specified event object,falseotherwise.
-
getEventType
- Specified by:
getEventTypein interfaceTypedEventListener
-
onEvent
Description copied from interface:EventListenerHandles the specified event. Again, as this interface is an implementation concept, implementations of this method will likely dispatch the event to a 'real' processor (e.g. method).- Specified by:
onEventin interfaceEventListener- Parameters:
event- the event to handle.
-
getMethodArgumentType
-