public class DefaultEventFactory extends Object implements EventFactory
EventFactory
implementation. Uses the method's name as
event id.Constructor and Description |
---|
DefaultEventFactory() |
Modifier and Type | Method and Description |
---|---|
Event |
create(StateContext context,
Method method,
Object[] arguments)
Creates a new
Event from the specified method and method
arguments. |
public Event create(StateContext context, Method method, Object[] arguments)
Event
from the specified method and method
arguments.create
in interface EventFactory
context
- the current StateContext
.method
- the method being invoked.arguments
- the method arguments.Event
object.Copyright © 2004–2021 Apache MINA Project. All rights reserved.