I'd like to load a series of Swing Actions into a container at runtime and access them by a constant name as is possible with an Enum. The purpose of this would be to both restrict the Actions possible and also improve readability.
Initially, I was considering a sort of dynamic enum (see http://blog.xebia.com/2009/04/02/dynamic-enums-in-java/) but as Java Drinker points out below this is unnecessary since the actions remain unchanged.
Ideally, what I'd like to do is a sort of wrapper that contains AbstractAction
instances which could be enabled/disabled and be able to refer to each action through a symbolic name.
Edit: Question has been reformulated.