热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

com.sun.enterprise.deployment.EjbDescriptor.getEjbImplClassName()方法的使用及代码示例

本文整理了Java中com.sun.enterprise.deployment.EjbDescriptor.getEjbImplClassName()方法的一些代码示例

本文整理了Java中com.sun.enterprise.deployment.EjbDescriptor.getEjbImplClassName()方法的一些代码示例,展示了EjbDescriptor.getEjbImplClassName()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。EjbDescriptor.getEjbImplClassName()方法的具体详情如下:
包路径:com.sun.enterprise.deployment.EjbDescriptor
类名称:EjbDescriptor
方法名:getEjbImplClassName

EjbDescriptor.getEjbImplClassName介绍

[英]IASRI 4725194 Returns the Execution class ,which is same as the user-specified class in case of Message,Session and Bean Managed Persistence Entity Beans but is different for Container Mananged Persistence Entity Bean Therefore,the implementation in the base class is to return getEjbClassName() and the method is redefined in IASEjbCMPDescriptor.
[中]IASRI 4725194返回执行类,该类与消息、会话和Bean管理的持久性实体Bean中的用户指定类相同,但与容器管理的持久性实体Bean不同。因此,基类中的实现是返回getEjbClassName(),并且该方法在IASEjbCMPDescriptor中重新定义。

代码示例

代码示例来源:origin: org.glassfish.ejb/ejb-container

public static String getDefaultRemoteHomeImplClassName(EjbDescriptor desc) {
//IASRI 4725194 return desc.getEjbClassName() + REMOTE_SUFFIX;
return desc.getEjbImplClassName() + REMOTE_SUFFIX;
}

代码示例来源:origin: org.glassfish.ejb/ejb-container

public static String getDefaultEJBObjectImplClassName(EjbDescriptor desc) {
//IASRI 4725194 return desc.getEjbClassName() + REMOTE_SUFFIX;
return desc.getEjbImplClassName() + REMOTE_SUFFIX;
}

代码示例来源:origin: org.glassfish.deployment/dol

/**
* Return the EjbCMPEntityDescriptor for a bean
* for the given classname.
* It is assumed that there is a 1-to-1 mapping
* from class to descriptor.
* This is called at runtime from the Persistence Manager.
*/
public EjbCMPEntityDescriptor getCMPDescriptorFor(String className) {
synchronized(cmpDescriptorsLock) {
if (cmpDescriptors == null) {
cmpDescriptors = new HashMap();
for (EjbBundleDescriptor bundle : getBundleDescriptors(EjbBundleDescriptor.class)) {
for (EjbDescriptor ejb : bundle.getEjbs()) {
if (ejb instanceof EjbCMPEntityDescriptor)
cmpDescriptors.put(ejb.getEjbImplClassName(), ejb);
}
}
}
return (EjbCMPEntityDescriptor) cmpDescriptors.get(className);
}
}

代码示例来源:origin: org.glassfish.ejb/ejb-container

public InterceptorManager(Logger _logger, BaseContainer container,
Class[] lcAnnotationClasses, String[] pre30LCMethodNames)
throws Exception {
this._logger = _logger;
this.cOntainer= container;
this.lcAnnotatiOnClasses= lcAnnotationClasses;
this.pre30LCMethodNames = pre30LCMethodNames;
ejbDesc = container.getEjbDescriptor();
loader = container.getClassLoader();
beanClassName = ejbDesc.getEjbImplClassName();
this.beanClass = loader.loadClass(beanClassName);
frameworkInterceptors = ejbDesc.getFrameworkInterceptors();
buildEjbInterceptorChain();
if (_logger.isLoggable(Level.FINE)) {
_logger.log(Level.FINE, "InterceptorManager: " + toString());
}
}

代码示例来源:origin: org.glassfish.main.web/weld-integration

private void validateEjbProducer( Class annotatedClass,
AnnotatedField annotatedField,
List injectionResources ) {
EJB ejbAnnotation = annotatedField.getAnnotation(EJB.class);
if ( ejbAnnotation != null ) {
String lookupName = getLookupName(annotatedClass,
annotatedField,
injectionResources);
EjbDescriptor foundEjb = null;
Collection ejbs = deployment.getDeployedEjbs();
for ( EjbDescriptor oneEjb : ejbs ) {
String jndiName = oneEjb.getJndiName();
if (lookupName.contains(jndiName)) {
foundEjb = oneEjb;
break;
}
}
if ( foundEjb != null ) {
String className = foundEjb.getEjbImplClassName();
try {
Class clazz = Class.forName( className, false, annotatedClass.getClassLoader() );
validateResourceClass(annotatedField, clazz);
} catch (ClassNotFoundException ignore) {
}
}
}
}

代码示例来源:origin: org.glassfish.deployment/dol

/**
* Return the ordered list of interceptor info for AroundTimeout behavior
* of a particular business method. This list *does* include the info
* on any bean class interceptor. If present, this would always be the
* last element in the list because of the precedence defined by the spec.
*/
public List getAroundTimeoutInterceptors
(MethodDescriptor businessMethod) {
LinkedList aroundTimeoutInterceptors =
new LinkedList();
List classOrMethodInterceptors =
getClassOrMethodInterceptors(businessMethod);
for (EjbInterceptor next : classOrMethodInterceptors) {
if (next.getAroundTimeoutDescriptors().size() > 0) {
aroundTimeoutInterceptors.add(next);
}
}
if (hasAroundTimeoutMethod()) {
EjbInterceptor interceptorInfo = new EjbInterceptor();
interceptorInfo.setFromBeanClass(true);
interceptorInfo.addAroundTimeoutDescriptors(getAroundTimeoutDescriptors());
interceptorInfo.setInterceptorClassName(getEjbImplClassName());
aroundTimeoutInterceptors.add(interceptorInfo);
}
return aroundTimeoutInterceptors;
}

代码示例来源:origin: org.glassfish.deployment/dol

/**
* Return the ordered list of interceptor info for AroundInvoke behavior
* of a particular business method. This list *does* include the info
* on any bean class interceptor. If present, this would always be the
* last element in the list because of the precedence defined by the spec.
*/
public List getAroundInvokeInterceptors
(MethodDescriptor businessMethod) {
LinkedList aroundInvokeInterceptors =
new LinkedList();
List classOrMethodInterceptors =
getClassOrMethodInterceptors(businessMethod);
for (EjbInterceptor next : classOrMethodInterceptors) {
if (next.getAroundInvokeDescriptors().size() > 0) {
aroundInvokeInterceptors.add(next);
}
}
if (hasAroundInvokeMethod()) {
EjbInterceptor interceptorInfo = new EjbInterceptor();
interceptorInfo.setFromBeanClass(true);
interceptorInfo.addAroundInvokeDescriptors(getAroundInvokeDescriptors());
interceptorInfo.setInterceptorClassName(getEjbImplClassName());
aroundInvokeInterceptors.add(interceptorInfo);
}
return aroundInvokeInterceptors;
}

代码示例来源:origin: org.glassfish.webservices/jsr109-impl

public DeployedEndpointData(String path, Application app, WebServiceEndpoint endpoint) {
super(path, "", "");
this.appName = app.getAppName();
this.endpointName = endpoint.getEndpointName();
this.namespace = endpoint.getServiceName().getNamespaceURI();
this.serviceName = endpoint.getServiceName().getLocalPart();
QName pName = endpoint.getWsdlPort();
this.portName = (pName != null) ? pName.getLocalPart() : "";
this.implClass = endpoint.implementedByEjbComponent()
? endpoint.getEjbComponentImpl().getEjbImplClassName()
: endpoint.getServletImplClass();
this.address = path;
this.wsdl = address+"?wsdl";
this.tester = address+"?Tester";
this.implType = endpoint.implementedByEjbComponent() ? "EJB" : "SERVLET";
this.deploymentType = "109";
fillStatMap();
}

代码示例来源:origin: org.glassfish.ejb/ejb-container

cl.loadClass(dd.getEjbImplClassName());
} catch (ClassNotFoundException ex) {
_logger.log(Level.FINE,"ejb.classnotfound_exception",ex);
("generator.bean_class_not_found",
"Bean class {0} not found ",
new Object[] { dd.getEjbImplClassName()}));
ibe.initCause(ex);
throw ibe;

代码示例来源:origin: org.glassfish.ejb/ejb-container

try {
this.bean = cl.loadClass(dd.getEjbImplClassName());
} catch (ClassNotFoundException ex) {
throw new InvalidBean(

代码示例来源:origin: org.glassfish.ejb/ejb-container

ejbClass = loader.loadClass(ejbDescriptor.getEjbImplClassName());

代码示例来源:origin: org.glassfish.deployment/dol

(getEjbImplClassName());
callbackInterceptors.add(beanClassCallbackInfo);

推荐阅读
  • 本文分享了一个关于在C#中使用异步代码的问题,作者在控制台中运行时代码正常工作,但在Windows窗体中却无法正常工作。作者尝试搜索局域网上的主机,但在窗体中计数器没有减少。文章提供了相关的代码和解决思路。 ... [详细]
  • Java容器中的compareto方法排序原理解析
    本文从源码解析Java容器中的compareto方法的排序原理,讲解了在使用数组存储数据时的限制以及存储效率的问题。同时提到了Redis的五大数据结构和list、set等知识点,回忆了作者大学时代的Java学习经历。文章以作者做的思维导图作为目录,展示了整个讲解过程。 ... [详细]
  • 阿,里,云,物,联网,net,core,客户端,czgl,aliiotclient, ... [详细]
  • Java学习笔记之面向对象编程(OOP)
    本文介绍了Java学习笔记中的面向对象编程(OOP)内容,包括OOP的三大特性(封装、继承、多态)和五大原则(单一职责原则、开放封闭原则、里式替换原则、依赖倒置原则)。通过学习OOP,可以提高代码复用性、拓展性和安全性。 ... [详细]
  • Iamtryingtomakeaclassthatwillreadatextfileofnamesintoanarray,thenreturnthatarra ... [详细]
  • 本文介绍了一个Java猜拳小游戏的代码,通过使用Scanner类获取用户输入的拳的数字,并随机生成计算机的拳,然后判断胜负。该游戏可以选择剪刀、石头、布三种拳,通过比较两者的拳来决定胜负。 ... [详细]
  • Java序列化对象传给PHP的方法及原理解析
    本文介绍了Java序列化对象传给PHP的方法及原理,包括Java对象传递的方式、序列化的方式、PHP中的序列化用法介绍、Java是否能反序列化PHP的数据、Java序列化的原理以及解决Java序列化中的问题。同时还解释了序列化的概念和作用,以及代码执行序列化所需要的权限。最后指出,序列化会将对象实例的所有字段都进行序列化,使得数据能够被表示为实例的序列化数据,但只有能够解释该格式的代码才能够确定数据的内容。 ... [详细]
  • 开发笔记:加密&json&StringIO模块&BytesIO模块
    篇首语:本文由编程笔记#小编为大家整理,主要介绍了加密&json&StringIO模块&BytesIO模块相关的知识,希望对你有一定的参考价值。一、加密加密 ... [详细]
  • 本文详细介绍了Java中vector的使用方法和相关知识,包括vector类的功能、构造方法和使用注意事项。通过使用vector类,可以方便地实现动态数组的功能,并且可以随意插入不同类型的对象,进行查找、插入和删除操作。这篇文章对于需要频繁进行查找、插入和删除操作的情况下,使用vector类是一个很好的选择。 ... [详细]
  • 利用Visual Basic开发SAP接口程序初探的方法与原理
    本文介绍了利用Visual Basic开发SAP接口程序的方法与原理,以及SAP R/3系统的特点和二次开发平台ABAP的使用。通过程序接口自动读取SAP R/3的数据表或视图,在外部进行处理和利用水晶报表等工具生成符合中国人习惯的报表样式。具体介绍了RFC调用的原理和模型,并强调本文主要不讨论SAP R/3函数的开发,而是针对使用SAP的公司的非ABAP开发人员提供了初步的接口程序开发指导。 ... [详细]
  • Go Cobra命令行工具入门教程
    本文介绍了Go语言实现的命令行工具Cobra的基本概念、安装方法和入门实践。Cobra被广泛应用于各种项目中,如Kubernetes、Hugo和Github CLI等。通过使用Cobra,我们可以快速创建命令行工具,适用于写测试脚本和各种服务的Admin CLI。文章还通过一个简单的demo演示了Cobra的使用方法。 ... [详细]
  • 本文讨论了在手机移动端如何使用HTML5和JavaScript实现视频上传并压缩视频质量,或者降低手机摄像头拍摄质量的问题。作者指出HTML5和JavaScript无法直接压缩视频,只能通过将视频传送到服务器端由后端进行压缩。对于控制相机拍摄质量,只有使用JAVA编写Android客户端才能实现压缩。此外,作者还解释了在交作业时使用zip格式压缩包导致CSS文件和图片音乐丢失的原因,并提供了解决方法。最后,作者还介绍了一个用于处理图片的类,可以实现图片剪裁处理和生成缩略图的功能。 ... [详细]
  • 集合的遍历方式及其局限性
    本文介绍了Java中集合的遍历方式,重点介绍了for-each语句的用法和优势。同时指出了for-each语句无法引用数组或集合的索引的局限性。通过示例代码展示了for-each语句的使用方法,并提供了改写为for语句版本的方法。 ... [详细]
  • Python SQLAlchemy库的使用方法详解
    本文详细介绍了Python中使用SQLAlchemy库的方法。首先对SQLAlchemy进行了简介,包括其定义、适用的数据库类型等。然后讨论了SQLAlchemy提供的两种主要使用模式,即SQL表达式语言和ORM。针对不同的需求,给出了选择哪种模式的建议。最后,介绍了连接数据库的方法,包括创建SQLAlchemy引擎和执行SQL语句的接口。 ... [详细]
  • Imtryingtofigureoutawaytogeneratetorrentfilesfromabucket,usingtheAWSSDKforGo.我正 ... [详细]
author-avatar
敏儿儿
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有