public class SwarmStrategyFactory extends Object implements StrategyFactory
SwarmStrategys.| Constructor and Description |
|---|
SwarmStrategyFactory(Class<? extends ISecureComponent> secureClass,
Object hiveQueen)
Constructs a new factory.
|
SwarmStrategyFactory(Object hiveQueen)
Constructs a new factory.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Called at the end of the applications lifecycle to clean up resources
|
protected Object |
getHiveKey()
The key to the hive.
|
protected Class<? extends ISecureComponent> |
getSecureClass()
All instance of this class will be required to have
ComponentPermission with at least
the access action. |
WaspAuthorizationStrategy |
newStrategy()
Create a new Strategy.
|
public SwarmStrategyFactory(Object hiveQueen)
ISecurePages to have access
rights.hiveQueen - the key to get the Hivepublic SwarmStrategyFactory(Class<? extends ISecureComponent> secureClass, Object hiveQueen)
secureClass - instances of this class will be required to have access rights.hiveQueen - hiveQueen the key to get the Hivepublic void destroy()
StrategyFactorydestroy in interface StrategyFactoryStrategyFactory.destroy()public WaspAuthorizationStrategy newStrategy()
StrategyFactorynewStrategy in interface StrategyFactoryStrategyFactory.newStrategy()protected final Object getHiveKey()
protected final Class<? extends ISecureComponent> getSecureClass()
ComponentPermission with at least
the access action.Copyright © 2015. All rights reserved.