public class EmployeeRouter
{
public EmployeeRouter()
{
super();
}
@Override
@Router
public final String route(final Employee employee)
{
final String channel;
// Set channel name
return channel;
}
}
The router should be initialized into the Spring context.