1 10 package org.nanocontainer.testmodel; 11 12 import java.io.Serializable ; 13 14 17 public class IdentifiableMixin implements Identifiable, AnotherInterface { 18 19 private Serializable id; 20 21 public IdentifiableMixin(IdGenerator generator) { 22 this.id = generator.nextId(); 23 } 24 25 public IdentifiableMixin() { 26 this(new IdGeneratorImpl()); 27 } 28 29 public Serializable getId() { 30 return id; 31 } 32 33 public void setId(Serializable id) { 34 this.id = id; 35 } 36 37 } | Popular Tags |