java - What is the impact of extending Serializable interface -



java - What is the impact of extending Serializable interface -

i have interface displayable enums called idisplayenum. utilize several wicket components phone call display() , right representation of enum. create displayenumlabel have code this:

public class displayenumlabel extends label { public displayenumlabel(string id, imodel<? extends idisplayenum> model) { super(id, model); } }

which create using:

add(new displayenumlabel(new propertymodel(object,"fieldname")));

now want model.of(t object) when propertymodel not needed here t should extend serializable enums "don't fit". can solve extending idisplayenum serailizable.

now question is, impact of this? have ~20 enums implementing interface , used lot. impact performance, security or of usual serializable interface downsides?

i'm not aware of negative implications of implementing serializable.

everything referenced wicket component tree has serializable anyway. can around using idetachablemodels, model keeps direct reference wrapped object.

java serialization wicket wicket-1.5

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -