An internal data structure that maps a given component class to a set of role strings.
Permissions can be granted to instantiate a given component class via authorize(Class, Roles
roles) and denied via unauthorize(Class, Roles roles). All authorization can be removed for a
given class with authorizeAll(Class).
Gives the given role permission to instantiate the given class.
componentClass - The component class
rolesToAdd - The roles to add
public final <T extends Component> void authorizeAll(Class<T> componentClass)
Gives all roles permission to instantiate the given class. Note that this is only relevant if
a role was previously authorized for that class. If no roles where previously authorized the
effect of the unauthorize call is that no roles at all will be authorized for that class.