public class SwarmStrategyFactory extends Object implements StrategyFactory
SwarmStrategy
s.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)
ISecurePage
s to have access
rights.hiveQueen
- the key to get the Hive
public 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 Hive
public void destroy()
StrategyFactory
destroy
in interface StrategyFactory
StrategyFactory.destroy()
public WaspAuthorizationStrategy newStrategy()
StrategyFactory
newStrategy
in interface StrategyFactory
StrategyFactory.newStrategy()
protected final Object getHiveKey()
protected final Class<? extends ISecureComponent> getSecureClass()
ComponentPermission
with at least
the access action.Copyright © 2015. All rights reserved.