a simple solution is to make a wrapper for your vector :
class MyVector {
private Vector;
public setVector(Vector v){
this.vector = v;
}
public add(String s){
intruptService();
vector.add(s);
}
private intruptService(){
//TODO
your-code
}
}
other more complicated solution is using Observer Pattern.