I have a factory method which is conversation scoped but I occasionally want to clear/reload this value in the middle of a conversation. I am currently doing:
public void Component {
@In("#{factoryValue}")
@Out
List factoryValue;
@Factory("factoryValue")
public List createFactoryValue() {
//Create List here
}
public void clearValue() {
factoryValue = null;
}
}
"youngm" wrote:
Another option is to simply clear it out of the context the variable exists in. Does anyone else know of any other ways to clear the value of a factory method?