⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 distributedtargetmetadef.java

📁 用jbuilder写的源程序
💻 JAVA
字号:
package com.jdon.bussinessproxy.meta;

/**
 * EJB3 simple Distributed Object
 * @author banq
 *
 */
public class DistributedTargetMetaDef extends AbstractTargetMetaDef{
	
	protected String jndiName;
	
	protected String name;
	
	private String interfaceClass;
	
	public DistributedTargetMetaDef(String name, String jndiName) {
		this.name = name;
		this.jndiName = jndiName;
	}
	
	public DistributedTargetMetaDef(String name, String jndiName, String interfaceClass) {
		this.name = name;
		this.jndiName = jndiName;		
		this.interfaceClass = interfaceClass;
	}

	public String getJndiName() {
		return jndiName;
	}

	public void setJndiName(String jndiName) {
		this.jndiName = jndiName;
	}
	
	/**
	 * jndiName作为EJB的key
	 * @return String
	 */
	public String getCacheKey() {
		return jndiName;
	}

	/**
	 * @return Returns the name.
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            The name to set.
	 */
	public void setName(String name) {
		this.name = name;
	}
	
	public boolean isEJB() {
		return true;
	}
	
	/**
	 * EJB3 class is same as interface Class
	 */
	public String getClassName() {
		return interfaceClass;
	}
	
	/**
	 * @return Returns the interfaceClass.
	 */
	public String getInterfaceClass() {
		return interfaceClass;
	}

	/**
	 * @param interfaceClass
	 *            The interfaceClass to set.
	 */
	public void setInterfaceClass(String interfaceClass) {
		this.interfaceClass = interfaceClass;
	}

	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -