There are objects which need two other objects as parameters. This parameter objects may change during runtime.
I use another object which holds the references to the parameter objects. These references are always up to date.
All the other objects ask this objects for the current parameters. They don't have to be updated anymore. Only this "reference helper" will be updated.
What is the name of this pattern or technique, or the name of the "reference helper"?
Edit: Here is a Java example:
class ReferenceHelper {
private Parameter parameter;
public ReferenceHelper(Parameter parameter){setParameter(parameter);}
public Parameter getParameter(){return parameter;}
public void setParameter(Paramater parameter){ this.parameter = parameter;}
}
P.S. I know its almost a bean, but thats not the point, because it has a special purpose.