|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public StrategyService
Interface allowing to set strategies without the need to actively fetch the model and set it.
| Field Summary | |
|---|---|
String |
SERVICE_NAME
The service name to be used to fetch the service from the ServiceManager |
| Method Summary | |
|---|---|
void |
setStrategy(String model,
Strategy[] strategy)
Sets the specified array of strategies or in case none has been defined falls back to the default strategy |
com.ibm.mashups.enabler.strategy.Strategy[] |
getStrategies(String model)
Returns the array of strategies which are in use |
com.ibm.mashups.enabler.strategy.Strategy |
getStrategy(String model,
strategy strategy)
Returns the specified strategy |
int |
addStrategy(String model,
Strategy strategy)
Adds a strategy to the strategies array |
void |
removeStrategy(String model,
strategy strategy)
Removes the specified strategy |
| Field Detail |
|---|
String SERVICE_NAME
| Method Detail |
|---|
void setStrategy(String model,
Strategy[] strategy)
model -
class name of the model that strategy belongs tostrategy -
array of strategies to set; may be nullcom.ibm.mashups.enabler.strategy.Strategy[] getStrategies(String model)
model -
class name of the model that strategy belongs to
null if no strategies are in use
com.ibm.mashups.enabler.strategy.Strategy getStrategy(String model,
strategy strategy)
model -
class name of the model that strategy belongs tostrategy -
class name or array index of strategy
null if no strategy with the specified type is in use
int addStrategy(String model,
Strategy strategy)
model -
class name of the model that strategy belongs tostrategy -
strategy to add; must not be null
void removeStrategy(String model,
strategy strategy)
model -
class name of the model that strategy belongs tostrategy -
class name or array index of the strategy; must not be null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||