BEAST
eu.baltrad.beast.admin.RouteCommandHelper Class Reference
Inheritance diagram for eu.baltrad.beast.admin.RouteCommandHelper:

Classes

class  RouteMapping
 Container class for mapping between routes and rules.
 

Public Member Functions

 RouteCommandHelper ()
 Constructor.
 
void setup (Set< RouteMapping > routes)
 Sets up a mapping.
 
List< String > translateRouteTypesToRuleNames (List< String > types)
 Returns a list of rule names from the route names.
 
Route createRouteFromDefinition (RouteDefinition def)
 Creates a route from a route definition.
 
Class getRouteClass (String key)
 Returns the actual class for the specified route name.
 
Route newInstance (String key)
 Creates a new instance of provided route.
 
boolean hasRouteMapping (String key)
 Returns if the route mappings exists or not.
 
List< String > getRouteTypes ()
 The currently supported route names.
 
void afterPropertiesSet () throws Exception
 After properties set.
 

Detailed Description

Author
anders

Constructor & Destructor Documentation

◆ RouteCommandHelper()

eu.baltrad.beast.admin.RouteCommandHelper.RouteCommandHelper ( )
inline

Constructor.

Member Function Documentation

◆ afterPropertiesSet()

void eu.baltrad.beast.admin.RouteCommandHelper.afterPropertiesSet ( ) throws Exception
inline

After properties set.

◆ createRouteFromDefinition()

Route eu.baltrad.beast.admin.RouteCommandHelper.createRouteFromDefinition ( RouteDefinition def)
inline

Creates a route from a route definition.

Parameters
defthe route definition
Returns
the route

◆ getRouteClass()

Class eu.baltrad.beast.admin.RouteCommandHelper.getRouteClass ( String key)
inline

Returns the actual class for the specified route name.

Parameters
keythe route name
Returns
the class

◆ getRouteTypes()

List< String > eu.baltrad.beast.admin.RouteCommandHelper.getRouteTypes ( )
inline

The currently supported route names.

Returns
the key set

◆ hasRouteMapping()

boolean eu.baltrad.beast.admin.RouteCommandHelper.hasRouteMapping ( String key)
inline

Returns if the route mappings exists or not.

Parameters
keythe key
Returns
if route exists or not

◆ newInstance()

Route eu.baltrad.beast.admin.RouteCommandHelper.newInstance ( String key)
inline

Creates a new instance of provided route.

Parameters
keythe route name
Returns
the route

◆ setup()

void eu.baltrad.beast.admin.RouteCommandHelper.setup ( Set< RouteMapping > routes)
inline

Sets up a mapping.

Parameters
routeSetthe route set

◆ translateRouteTypesToRuleNames()

List< String > eu.baltrad.beast.admin.RouteCommandHelper.translateRouteTypesToRuleNames ( List< String > types)
inline

Returns a list of rule names from the route names.

Parameters
typesthe list of types
Returns
a list of rule types

The documentation for this class was generated from the following file: