That is known as the Nazareth vow, the vow that Samson took. It seems that Gabriel was saying this child would be as great as Samson, who judged Israel. For more information, read the story of Samson in the Book of Judges.
DISCLAIMER: Catholic Answers has turned over the archive to Catholic-Questions.org and no longer owns, manages, or moderates the forums. For additional apologetics resources please visit www.catholic.com.