If you dream of being in enclosure, then such dream indicates the state of your mind where you feel you need to protect yourself. Perhaps there is some situation in your waking life that makes you be aware of the surroundings now and in the future either. If you are in the enclosure that is shrinking, then such dream shows the suppressed emotions you have made, because of some matter. You should start removing these barriers that you have made for yourself, because no matter what the protection you have, things that meant to be will happen anyway. If you see yourself in the enclosure that is made out of glass, then such dream foretells about the invisible protection you are putting against the others.
Read more about dreaming of Enclosure in other dream meanings interpretations.