Entrapment of an adenine derivative by a photo-irradiated uracil-functionalized micelle confers controlled self-assembly behavior.