本文整理了Java中com.sun.enterprise.deployment.EjbDescriptor.getEjbImplClassName()
方法的一些代码示例,展示了EjbDescriptor.getEjbImplClassName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。EjbDescriptor.getEjbImplClassName()
方法的具体详情如下:
包路径:com.sun.enterprise.deployment.EjbDescriptor
类名称: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
EJB ejbAnnotation = annotatedField.getAnnotation(EJB.class);
if ( ejbAnnotation != null ) {
String lookupName = getLookupName(annotatedClass,
annotatedField,
injectionResources);
EjbDescriptor foundEjb = null;
Collection
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
(MethodDescriptor businessMethod) {
LinkedList
new LinkedList
List
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
(MethodDescriptor businessMethod) {
LinkedList
new LinkedList
List
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);