【Java开源代码栏目提醒】:网学会员Java开源代码为您提供BookRef.java参考,解决您在BookRef.java学习中工作中的难题,参考学习。
import java.io.*;
import javax.naming.*;
public class BookRef implements Referenceable
{
String title;
public BookRef(String title) {
this.title = title;
}
public String toString() {
return title;
}
public Reference getReference() throws NamingException {
return new Reference(
BookRef.class.getName(),
new StringRefAddr("book", title),
BookFactory.class.getName(),
null);
}
}