1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package com.fatwire.gst.foundation.controller.action.support;
17
18 import org.apache.commons.lang.StringUtils;
19
20 import COM.FutureTense.Interfaces.ICS;
21
22 import com.fatwire.gst.foundation.controller.action.Action;
23 import com.fatwire.gst.foundation.controller.action.Injector;
24 import com.fatwire.gst.foundation.controller.action.RenderPage;
25
26
27
28
29
30
31
32 public final class RenderPageActionLocator extends AbstractActionLocator {
33 public RenderPageActionLocator(Injector injector) {
34 super(injector);
35 }
36
37 @Override
38 protected Action doFindAction(ICS ics, String name) {
39 if (StringUtils.isNotBlank(name))
40 throw new IllegalArgumentException(
41 "The "
42 + getClass().getName()
43 + " was called with a named Action. This is not intended as this means that a Action should have been found by a previous ActionLocator.");
44 return new RenderPage();
45 }
46 }