|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.baswell.routes.DefaultRouteInstancePool
public class DefaultRouteInstancePool
Create a new route object each time using the default constructor and discards the object after use.
| Constructor Summary | |
|---|---|
DefaultRouteInstancePool()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
borrowRouteInstance(java.lang.Class routeClass)
Called when a route match has been made to a method in the given class and an instance is needed to process the request. |
void |
returnRouteInstance(java.lang.Object routeInstance)
The Routes engine is done using this route instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultRouteInstancePool()
| Method Detail |
|---|
public java.lang.Object borrowRouteInstance(java.lang.Class routeClass)
throws RouteInstanceBorrowException
RouteInstancePoolreturnRouteInstance).
borrowRouteInstance in interface RouteInstancePoolrouteClass - A route class that was added to the RoutingTable.
RouteInstanceBorrowException - If a route instance cannot be borrowed for any reason.public void returnRouteInstance(java.lang.Object routeInstance)
RouteInstancePool
returnRouteInstance in interface RouteInstancePoolrouteInstance - A route object previous retrieved from borrowRouteInstance.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||