クラス Controller
java.lang.Object
org.wcardinal.controller.internal.Controller
- すべての実装されたインタフェース:
ControllerContext,SContainerParent,SParent,MethodContainer,Unlockable
- 直系の既知のサブクラス:
ComponentController,RootController,VisibilityController
public class Controller
extends Object
implements ControllerContext, MethodContainer, SContainerParent
-
コンストラクタの概要
コンストラクタコンストラクタ説明Controller(String name, Controller parent, ControllerFactory factory, Object instance, ControllerBaggage baggage, com.fasterxml.jackson.databind.node.ArrayNode factoryParameters, AutoCloseableReentrantLock lock, TaskInternalQueue tasks) -
メソッドの概要
修飾子とタイプメソッド説明voidaddParent(Controller parent) booleancancel()Cancels the current request issued bytimeoutorintervalmethods, or the current task.booleancancel(long id) Cancels the request of the specified ID issued bytimeoutorintervalmethods.booleanCancels the current task.voidCancels all requests issued bytimeoutorintervalmethods.protected Longprotected Longvoidvoidvoiddestroy(Controller origin) Future<?>Requests to execute the specified runnable.voidRequests to execute methods annotated with theOnTimeof the specified name.<T> Future<T>Requests to execute the specified callable.<T> TReturns the active page or null.Returns the attributes.getControllerAt(String[] paths) getControllerAt(String[] paths, int index, int length) com.fasterxml.jackson.databind.node.ArrayNodeReturns the factory parameters.Returns the preferred locale.Returns the locale objects in decreasing order starting with the preferred locale.getName()Returns the name of this controller.getParameter(String key) Returns the first parameter of the specified key.Returns the map of parameters.String[]getParameters(String key) Returns the parameters of the specified key.<T> TReturns the parent.Factory<?>Returns the parent as a factory.<T> Collection<T>Returns the parents.Returns the user principle.Returns the user's remote address.Returns the scheduler.Returns the session ID.Returns the sub session ID.<V> VgetWorkingData(Object key) <T> voidhandle(MethodResult<T> result) booleanbooleanvoidhide()Hides this controller.voidlongRequests to call the specified runnable at the specified interval and returns an ID of this request.longRequests to call the specified runnable at the specified interval after the 'startAfter' milliseconds and returns an ID of this request.longRequests to call methods annotated with theOnTimeof the specified name at the specified interval and returns an ID of this request.longRequests to call methods annotated with theOnTimeof the specified name at the specified interval after the 'startAfter' milliseconds and returns an ID of this request.booleanReturns true if the current task is canceled or if the current request issued bytimeoutorintervalmethods is canceled/non-existing.booleanReturns true if the thread calling this method is the forefront executor of methods annotated withTracked.booleanisHidden()Returns true if this controller is hidden.booleanReturns true if this controller is historical.booleanisLocked()Returns true if this controller is locked.booleanReturns true if this controller is locked by the current thread.booleanReturns true if this controller is non-null.booleanReturns true if this controller is read-only.booleanisShared()booleanisShown()Returns true if this controller is shown.booleanlock()Locks this controller.lockDynamicInfo(Controller origin, long senderId, long now, long timeout) voidRequests to call methods annotated with theOnNoticeof the specified name.voidnotifyAsync(String name, Object... parameters) Requests to call methods annotated with theOnNoticeof the specified name asynchronously.voidvoidvoidvoidonHide()voidvoidvoidonShow()voidvoidonUnlock()voidpostCreate(Object... parameters) voidvoidvoidput(String name, ControllerOnChangeHandler handler) voidput(ControllerDynamicInfoHandler handler) voidputWorkingData(Object key, Object data) voidsetAuthorizedRevision(Controller origin, AckInfo info, boolean allowCompaction) voidsetRequestId(Long id) voidvoidshow()Shows this controller.voidlongRequests to call the specified runnable after the specified delay and returns an ID of this request.longRequests to call methods annotated with theOnTimeof the specified name after the specified delay and returns an ID of this request.<T> TimeoutFuture<T>Requests to call the specified callable after the specified delay.voidTriggers the event of the given name at browsers.triggerAndWait(String name, long timeout, Object... arguments) Triggers the event of the specified name at browsers and waits for responses from browsers.voidtriggerDirect(String name, Object... arguments) Triggers the event of the given name at browsers directly.booleantryLock()Tries to lock this controller.booleanTries to lock this controller.voidunlock()Unlocks this controller.voidunlock(Controller origin) voidunlockDynamicInfo(Controller origin, long senderId, long now) voidupdate()
-
コンストラクタの詳細
-
Controller
public Controller(String name, Controller parent, ControllerFactory factory, Object instance, ControllerBaggage baggage, com.fasterxml.jackson.databind.node.ArrayNode factoryParameters, AutoCloseableReentrantLock lock, TaskInternalQueue tasks)
-
-
メソッドの詳細
-
handle
- 定義:
handleインタフェース内MethodContainer
-
addParent
-
setAuthorizedRevision
-
lockDynamicInfo
-
unlockDynamicInfo
-
lock
インタフェースからコピーされた説明:ControllerContextLocks this controller.Please note that all the fields and controllers belonging to the same controller instance share a lock. Thus, the followings is not necessary:
When the 'onChange' method is called, the 'name' field is locked. And the 'name' field, the 'score' field and the 'MyController' controller share a lock. The 'score' field, therefore, is locked at the time the 'onChange' method is called. The only exception to this is a component annotated with@Controller class MyController { @Autowired SString name; @Autowired SInteger score; @OnChange("name") void onChange(){ try( Unlocker unlocker = score.lock() ){ // Unnecessary score.set( 0 ); } } }SharedComponent. Shared components and fields on them do not share a lock with the others. Because shared components do not share a lock, the lock ordering is necessary to avoid concurrency issues. If locking a shared component and one of its parents at once is unavoidable, must lock a parent at first. And then lock a shared component.@SharedComponent class MySharedComponent{} @Controller class MyController { @Autowired MySharedComponent component; void foo(){ // At first lock itself, the parent of the 'this.component' try( Unlocker parent = lock() ) { // Then lock a shared component try( Unlocker child = component.lock() ) { // Do something here } } } }- 定義:
lockインタフェース内ControllerContext- 定義:
lockインタフェース内MethodContainer- 定義:
lockインタフェース内SContainerParent- 戻り値:
Unlockerinstance for unlocking this lock
-
tryLock
public boolean tryLock()インタフェースからコピーされた説明:ControllerContextTries to lock this controller.- 定義:
tryLockインタフェース内ControllerContext- 定義:
tryLockインタフェース内SContainerParent- 戻り値:
- true if succeeded
-
tryLock
インタフェースからコピーされた説明:ControllerContextTries to lock this controller.- 定義:
tryLockインタフェース内ControllerContext- 定義:
tryLockインタフェース内SContainerParent- パラメータ:
timeout- the timeout for this trialunit- the unit of the timeout- 戻り値:
- true if succeeded
-
isLocked
public boolean isLocked()インタフェースからコピーされた説明:ControllerContextReturns true if this controller is locked.- 定義:
isLockedインタフェース内ControllerContext- 定義:
isLockedインタフェース内SContainerParent- 戻り値:
- true if this controller is locked.
-
isLockedByCurrentThread
public boolean isLockedByCurrentThread()インタフェースからコピーされた説明:ControllerContextReturns true if this controller is locked by the current thread.- 定義:
isLockedByCurrentThreadインタフェース内ControllerContext- 定義:
isLockedByCurrentThreadインタフェース内MethodContainer- 定義:
isLockedByCurrentThreadインタフェース内SContainerParent- 戻り値:
- true if this controller is locked by the current thread.
-
unlock
public void unlock()インタフェースからコピーされた説明:ControllerContextUnlocks this controller.- 定義:
unlockインタフェース内ControllerContext- 定義:
unlockインタフェース内MethodContainer- 定義:
unlockインタフェース内SContainerParent- 定義:
unlockインタフェース内Unlockable
-
unlock
-
onUnlock
public void onUnlock() -
update
public void update() -
getName
インタフェースからコピーされた説明:ControllerContextReturns the name of this controller.- 定義:
getNameインタフェース内ControllerContext- 戻り値:
- the name of this controller
-
getParent
public <T> T getParent()インタフェースからコピーされた説明:ControllerContextReturns the parent.- 定義:
getParentインタフェース内ControllerContext- 型パラメータ:
T- the type of parent- 戻り値:
- the parent instance
-
getParents
インタフェースからコピーされた説明:ControllerContextReturns the parents.- 定義:
getParentsインタフェース内ControllerContext- 型パラメータ:
T- the type of parents- 戻り値:
- the parent instances
-
getParentAsFactory
インタフェースからコピーされた説明:ControllerContextReturns the parent as a factory.- 定義:
getParentAsFactoryインタフェース内ControllerContext- 戻り値:
- the parent instance
-
getActivePage
public <T> T getActivePage()インタフェースからコピーされた説明:ControllerContextReturns the active page or null.- 定義:
getActivePageインタフェース内ControllerContext- 型パラメータ:
T- the type of the active page- 戻り値:
- the active page
-
getInstance
-
getParameter
インタフェースからコピーされた説明:ControllerContextReturns the first parameter of the specified key. The parameters are taken from the query string or posted form data.// HTML <script src="my-controller?name=Cardinal"></script> // Java @Controller class MyController { @OnCreate void onCreate(){ System.out.println( getParameter("name") ); // prints "Cardinal" } }- 定義:
getParameterインタフェース内ControllerContext- パラメータ:
key- the key of the parameter- 戻り値:
- the first parameter of the specified key
-
getParameters
インタフェースからコピーされた説明:ControllerContextReturns the parameters of the specified key. The parameters are taken from the query string or posted form data.// HTML <script src="my-controller?name=Cardinal"></script> // Java @Controller class MyController { @OnCreate void onCreate(){ System.out.println( Arrays.toString(getParameters("name")) ); // prints ["Cardinal"] } }- 定義:
getParametersインタフェース内ControllerContext- パラメータ:
key- the key of the parameters- 戻り値:
- the parameters of the specified key
-
getParameterMap
インタフェースからコピーされた説明:ControllerContextReturns the map of parameters. The parameters are taken from the query string or posted form data.// HTML <script src="my-controller?name=Cardinal"></script> // Java @Controller class MyController { @OnCreate void onCreate(){ System.out.println( getParameterMap("name") ); // prints {name=["Cardinal"]} } }- 定義:
getParameterMapインタフェース内ControllerContext- 戻り値:
- the map of parameters
-
getFactoryParameters
public com.fasterxml.jackson.databind.node.ArrayNode getFactoryParameters()インタフェースからコピーされた説明:ControllerContextReturns the factory parameters. The factory parameters are the parameters given to the methodFactory.create(Object...).@Controller class MyController { @Autowired ComponentFactory<MyComponent> factory; @OnCreate void onCreate(){ factory.create(1, "Cardinal"); } } class MyComponent extends AbstractComponent { @OnCreate void onCreate(){ System.out.println( getFactoryParameters() ); // prints [1, "Cardinal"] } }- 定義:
getFactoryParametersインタフェース内ControllerContext- 戻り値:
- the factory parameters.
-
getAttributes
インタフェースからコピーされた説明:ControllerContextReturns the attributes.- 定義:
getAttributesインタフェース内ControllerContext- 戻り値:
- the attributes.
-
put
-
put
- 定義:
putインタフェース内SContainerParent
-
put
-
put
- 定義:
putインタフェース内SContainerParent
-
create
-
postCreate
-
checkVisibility
public void checkVisibility() -
onChange
-
onChange
-
onNotice
-
show
public void show()インタフェースからコピーされた説明:ControllerContextShows this controller.- 定義:
showインタフェース内ControllerContext
-
hide
public void hide()インタフェースからコピーされた説明:ControllerContextHides this controller.- 定義:
hideインタフェース内ControllerContext
-
isShown
public boolean isShown()インタフェースからコピーされた説明:ControllerContextReturns true if this controller is shown.- 定義:
isShownインタフェース内ControllerContext- 戻り値:
- true if this controller is shown.
-
isHidden
public boolean isHidden()インタフェースからコピーされた説明:ControllerContextReturns true if this controller is hidden.- 定義:
isHiddenインタフェース内ControllerContext- 戻り値:
- true if this controller is hidden.
-
onShow
-
onShow
public void onShow() -
onHide
-
onHide
public void onHide() -
onDestroy
public void onDestroy() -
destroy
-
getStaticInfo
-
hasHistorical
public boolean hasHistorical() -
getStaticInstanceInfo
-
getRemoteAddress
インタフェースからコピーされた説明:ControllerContextReturns the user's remote address.- 定義:
getRemoteAddressインタフェース内ControllerContext- 戻り値:
- user's remote address
-
getPrincipal
インタフェースからコピーされた説明:ControllerContextReturns the user principle.- 定義:
getPrincipalインタフェース内ControllerContext- 戻り値:
- user principle
-
getScheduler
インタフェースからコピーされた説明:ControllerContextReturns the scheduler.- 定義:
getSchedulerインタフェース内ControllerContext- 定義:
getSchedulerインタフェース内MethodContainer- 戻り値:
- the scheduler
-
getSessionId
インタフェースからコピーされた説明:ControllerContextReturns the session ID.- 定義:
getSessionIdインタフェース内ControllerContext- 戻り値:
- the session ID
-
getSubSessionId
インタフェースからコピーされた説明:ControllerContextReturns the sub session ID.- 定義:
getSubSessionIdインタフェース内ControllerContext- 戻り値:
- the sub session ID
-
execute
インタフェースからコピーされた説明:ControllerContextRequests to execute methods annotated with theOnTimeof the specified name.- 定義:
executeインタフェース内ControllerContext- パラメータ:
name- method name specified byOnTimeparameters- parameters to be passed to the specified methods
-
execute
インタフェースからコピーされた説明:ControllerContextRequests to execute the specified runnable.- 定義:
executeインタフェース内ControllerContext- パラメータ:
runnable- runnable to be executed- 戻り値:
- future
-
execute
インタフェースからコピーされた説明:ControllerContextRequests to execute the specified callable.- 定義:
executeインタフェース内ControllerContext- 型パラメータ:
T- return type of the specified callable- パラメータ:
callable- callable to be executed- 戻り値:
- future
-
timeout
インタフェースからコピーされた説明:ControllerContextRequests to call methods annotated with theOnTimeof the specified name after the specified delay and returns an ID of this request. Use the returned ID andControllerContext.cancel(long)for canceling the request.- 定義:
timeoutインタフェース内ControllerContext- パラメータ:
name- method name specified byOnTimedelay- delay in millisecondsparameters- parameters to be passed to the specified methods- 戻り値:
- request ID
- 関連項目:
-
timeout
インタフェースからコピーされた説明:ControllerContextRequests to call the specified runnable after the specified delay and returns an ID of this request. Use the returned ID andControllerContext.cancel(long)for canceling the request.- 定義:
timeoutインタフェース内ControllerContext- パラメータ:
runnable- runnable to be executeddelay- delay in milliseconds- 戻り値:
- request ID
- 関連項目:
-
timeout
インタフェースからコピーされた説明:ControllerContextRequests to call the specified callable after the specified delay. Use the returned ID andControllerContext.cancel(long)for canceling the request.- 定義:
timeoutインタフェース内ControllerContext- 型パラメータ:
T- return type of the specified callable- パラメータ:
callable- callable to be executeddelay- delay in milliseconds- 戻り値:
- future
- 関連項目:
-
interval
インタフェースからコピーされた説明:ControllerContextRequests to call methods annotated with theOnTimeof the specified name at the specified interval and returns an ID of this request. Use the returned ID andControllerContext.cancel(long), orControllerContext.cancel()for canceling the request. The first call is taking place after the milliseconds specified as the interval.- 定義:
intervalインタフェース内ControllerContext- パラメータ:
name- method name specified byOnTimeinterval- interval in milliseconds- 戻り値:
- request ID
- 関連項目:
-
interval
インタフェースからコピーされた説明:ControllerContextRequests to call methods annotated with theOnTimeof the specified name at the specified interval after the 'startAfter' milliseconds and returns an ID of this request. Use the returned ID andControllerContext.cancel(long), orControllerContext.cancel()for canceling the request. The first call is taking place after the 'startAfter' milliseconds.- 定義:
intervalインタフェース内ControllerContext- パラメータ:
name- method name specified byOnTimestartAfter- delay of the first call in millisecondsinterval- interval in millisecondsparameters- parameters to be passed to the specified methods- 戻り値:
- request ID
- 関連項目:
-
interval
インタフェースからコピーされた説明:ControllerContextRequests to call the specified runnable at the specified interval and returns an ID of this request. Use the returned ID andControllerContext.cancel(long), orControllerContext.cancel()for canceling the request. The first call is taking place after the milliseconds specified as the interval.- 定義:
intervalインタフェース内ControllerContext- パラメータ:
runnable- runnable to be executedinterval- interval in milliseconds- 戻り値:
- request ID
- 関連項目:
-
interval
インタフェースからコピーされた説明:ControllerContextRequests to call the specified runnable at the specified interval after the 'startAfter' milliseconds and returns an ID of this request. Use the returned ID andControllerContext.cancel(long), orControllerContext.cancel()for canceling the request. The first call is taking place after the 'startAfter' milliseconds.- 定義:
intervalインタフェース内ControllerContext- パラメータ:
runnable- runnable to be executedstartAt- delay of the first call in millisecondsinterval- interval in milliseconds- 戻り値:
- request ID
- 関連項目:
-
cancel
public boolean cancel(long id) インタフェースからコピーされた説明:ControllerContextCancels the request of the specified ID issued bytimeoutorintervalmethods.- 定義:
cancelインタフェース内ControllerContext- パラメータ:
id- request ID- 戻り値:
- true if succeeded
- 関連項目:
-
ControllerContext.timeout(String, long, Object...)ControllerContext.timeout(Runnable, long)ControllerContext.timeout(Callable, long)ControllerContext.interval(String, long)ControllerContext.interval(String, long, long, Object...)ControllerContext.interval(Runnable, long)ControllerContext.interval(Runnable, long, long)
-
getRequestId
- 定義:
getRequestIdインタフェース内MethodContainer
-
setRequestId
- 定義:
setRequestIdインタフェース内MethodContainer
-
getTrackingIds
- 定義:
getTrackingIdsインタフェース内MethodContainer
-
setTrackingIds
- 定義:
setTrackingIdsインタフェース内MethodContainer
-
cancel
public boolean cancel()インタフェースからコピーされた説明:ControllerContextCancels the current request issued bytimeoutorintervalmethods, or the current task. Under the hood, a thread local is used to distinguish requests/tasks.@Controller class MyController extends AbstractController { @OnCreate void onCreate(){ interval( "update", 1000 ); } @OnTime void update(){ // Stops the "update" by itself cancel(); } }- 定義:
cancelインタフェース内ControllerContext- 戻り値:
- true if succeeded
- 関連項目:
-
ControllerContext.timeout(String, long, Object...)ControllerContext.timeout(Runnable, long)ControllerContext.timeout(Callable, long)ControllerContext.interval(String, long)ControllerContext.interval(String, long, long, Object...)ControllerContext.interval(Runnable, long)ControllerContext.interval(Runnable, long, long)
-
cancel
インタフェースからコピーされた説明:ControllerContextCancels the current task. Under the hood, a thread local is used to distinguish tasks.- 定義:
cancelインタフェース内ControllerContext- パラメータ:
reason- a cancel reason- 戻り値:
- true if succeeded
-
cancelAll
public void cancelAll()インタフェースからコピーされた説明:ControllerContextCancels all requests issued bytimeoutorintervalmethods.- 定義:
cancelAllインタフェース内ControllerContext- 関連項目:
-
ControllerContext.timeout(String, long, Object...)ControllerContext.timeout(Runnable, long)ControllerContext.timeout(Callable, long)ControllerContext.interval(String, long)ControllerContext.interval(String, long, long, Object...)ControllerContext.interval(Runnable, long)ControllerContext.interval(Runnable, long, long)
-
isCanceled
public boolean isCanceled()インタフェースからコピーされた説明:ControllerContextReturns true if the current task is canceled or if the current request issued bytimeoutorintervalmethods is canceled/non-existing. Under the hood, a thread local is used to distinguish requests/tasks- 定義:
isCanceledインタフェース内ControllerContext- 戻り値:
- true if the current task is canceled or if the current request issued by
timeoutorintervalmethods is canceled/non-existing
-
isHeadCall
public boolean isHeadCall()インタフェースからコピーされた説明:ControllerContextReturns true if the thread calling this method is the forefront executor of methods annotated withTracked.- 定義:
isHeadCallインタフェース内ControllerContext- 戻り値:
- true if the thread calling this method is the forefront executor of methods annotated with
Tracked
-
trigger
インタフェースからコピーされた説明:ControllerContextTriggers the event of the given name at browsers. Optional arguments are passed to browsers as event data.// JavaScript myController.on( 'hello', function( e, name ){ console.log( name ); // prints 'Cardinal' }); // Java @Controller class MyController extends AbstractController { @OnCreate void onCreate(){ timeout( "hello", 5000 ); } @OnTime void hello(){ trigger( "hello", "Cardinal" ); } }- 定義:
triggerインタフェース内ControllerContext- パラメータ:
name- event namearguments- event data- 関連項目:
-
triggerDirect
インタフェースからコピーされた説明:ControllerContextTriggers the event of the given name at browsers directly. Only difference betweenControllerContext.trigger(String, Object...)and this is this method sends trigger events directly by bypassing the most of the costly synchronization processes. Thus, in general, supposed to be faster thanControllerContext.trigger(String, Object...). However, because of this, weak against network disconnections.- 定義:
triggerDirectインタフェース内ControllerContext- パラメータ:
name- event namearguments- event data- 関連項目:
-
triggerAndWait
インタフェースからコピーされた説明:ControllerContextTriggers the event of the specified name at browsers and waits for responses from browsers. Optional arguments are passed to browsers as event data. When a browser send back responses within a given period of time, the callbackDoneCallbackset to thePromise.done(org.jdeferred.DoneCallback)is called. Otherwise, the callbackFailCallbackset to thePromise.fail(org.jdeferred.FailCallback)is called.// JavaScript myController.on( 'hello', function( e, name ){ console.log( name ); // prints 'Cardinal' return 'Hello, '+name; }); // Java @Controller class MyController extends AbstractController { @OnCreate void onCreate(){ timeout( "hello", 5000 ); } @OnTime void hello(){ trigger( "hello", 3000, "Cardinal" ) .done(new DoneCallback<List<JsonNode>>(){ public void onDone(List<JsonNode> result) { System.out.println( result.get( 0 ).asText() ); // prints "Hello, Cardinal" } }); } }- 定義:
triggerAndWaitインタフェース内ControllerContext- パラメータ:
name- event nametimeout- timeout for this trigger in millisecondsarguments- event data- 戻り値:
- promise instance
- 関連項目:
-
show
-
hide
-
isShown
-
isReadOnly
public boolean isReadOnly()インタフェースからコピーされた説明:ControllerContextReturns true if this controller is read-only.- 定義:
isReadOnlyインタフェース内ControllerContext- 戻り値:
- true if this controller is read-only.
-
isNonNull
public boolean isNonNull()インタフェースからコピーされた説明:ControllerContextReturns true if this controller is non-null.- 定義:
isNonNullインタフェース内ControllerContext- 戻り値:
- true if this controller is non-null.
-
isHistorical
public boolean isHistorical()インタフェースからコピーされた説明:ControllerContextReturns true if this controller is historical.- 定義:
isHistoricalインタフェース内ControllerContext- 戻り値:
- true if this controller is historical.
-
getLocales
インタフェースからコピーされた説明:ControllerContextReturns the locale objects in decreasing order starting with the preferred locale.- 定義:
getLocalesインタフェース内ControllerContext- 戻り値:
- the locale objects
-
getLocale
インタフェースからコピーされた説明:ControllerContextReturns the preferred locale.- 定義:
getLocaleインタフェース内ControllerContext- 戻り値:
- the preferred locale
-
notify
インタフェースからコピーされた説明:ControllerContextRequests to call methods annotated with theOnNoticeof the specified name. Notifications propagate to parents. To catch a notification triggered by a child, use a name prefixed with a child name.@Component class MyComponent extends AbstractComponent { void notifyBar(){ notify( "bar" ); } } @Controller class MyController { @Autowired MyComponent foo; @OnNotice("foo.bar") void onNotice(){ // Called when the child 'foo' sends a 'bar' notification } }- 定義:
notifyインタフェース内ControllerContext- パラメータ:
name- notification nameparameters- notification parameters- 関連項目:
-
notifyAsync
インタフェースからコピーされた説明:ControllerContextRequests to call methods annotated with theOnNoticeof the specified name asynchronously. Notifications propagate to parents. To catch a notification triggered by a child, use a name prefixed with a child name.@Component class MyComponent extends AbstractComponent { void notifyBar(){ notifyAsync( "bar" ); } } @Controller class MyController { @Autowired MyComponent foo; @OnNotice("foo.bar") void onNotice(){ // Called when the child 'foo' sends a 'bar' notification } }- 定義:
notifyAsyncインタフェース内ControllerContext- パラメータ:
name- notification nameparameters- notification parameters- 関連項目:
-
getWorkingData
- 定義:
getWorkingDataインタフェース内MethodContainer
-
putWorkingData
- 定義:
putWorkingDataインタフェース内MethodContainer
-
getControllerAt
-
getControllerAt
-
hasOnIdleCheckMethods
public boolean hasOnIdleCheckMethods() -
checkIdle
-
checkIdleNotRequired
-
checkIdleRequired
-