Make encoder and decoder getter and setter static.