Class N2oRouteRegister
java.lang.Object
net.n2oapp.framework.config.register.route.N2oRouteRegister
- All Implemented Interfaces:
Iterable<Map.Entry<RouteInfoKey,,CompileContext>> EventListener,N2oEventListener<MetadataChangedEvent>,RouteRegister,org.springframework.context.ApplicationListener<MetadataChangedEvent>
public class N2oRouteRegister
extends Object
implements RouteRegister, N2oEventListener<MetadataChangedEvent>
Хранилище RouteInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRoute(String urlPattern, CompileContext<? extends Compiled, ?> context) voidclearAll()voidhandleEvent(MetadataChangedEvent event) iterator()booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecutionMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface net.n2oapp.framework.api.event.N2oEventListener
isApply, onApplicationEvent
-
Constructor Details
-
N2oRouteRegister
public N2oRouteRegister() -
N2oRouteRegister
-
-
Method Details
-
addRoute
- Specified by:
addRoutein interfaceRouteRegister
-
iterator
- Specified by:
iteratorin interfaceIterable<Map.Entry<RouteInfoKey,CompileContext>>
-
clearAll
public void clearAll()- Specified by:
clearAllin interfaceRouteRegister
-
synchronize
public boolean synchronize()- Specified by:
synchronizein interfaceRouteRegister
-
handleEvent
- Specified by:
handleEventin interfaceN2oEventListener<MetadataChangedEvent>
-