Package org.jboss.metadata.ejb.spec

Examples of org.jboss.metadata.ejb.spec.SessionBeanMetaData


            }
            final ClassInfo sessionBeanClassInfo = (ClassInfo) target;
            final String ejbName = sessionBeanClassInfo.name().local();
            final AnnotationValue nameValue = sessionBeanAnnotation.value("name");
            final String beanName = nameValue == null || nameValue.asString().isEmpty() ? ejbName : nameValue.asString();
            final SessionBeanMetaData beanMetaData = getEnterpriseBeanMetaData(deploymentUnit, beanName, SessionBeanMetaData.class);
            final SessionBeanComponentDescription.SessionBeanType sessionBeanType;
            final String beanClassName;
            if (beanMetaData != null) {
                sessionBeanType = override(annotatedSessionBeanType, descriptionOf(beanMetaData.getSessionType()));
                beanClassName = override(sessionBeanClassInfo.name().toString(), beanMetaData.getEjbClass());
            } else {
                sessionBeanType = annotatedSessionBeanType;
                beanClassName = sessionBeanClassInfo.name().toString();
            }
View Full Code Here


    @Override
    protected void handleDeploymentDescriptor(final DeploymentUnit deploymentUnit, final DeploymentReflectionIndex deploymentReflectionIndex, final Class<?> componentClass, final StatefulComponentDescription description) throws DeploymentUnitProcessingException {

        final DeploymentReflectionIndex reflectionIndex = deploymentUnit.getAttachment(Attachments.REFLECTION_INDEX);

        SessionBeanMetaData data = description.getDescriptorData();
        if (data != null) {
            LifecycleCallbacksMetaData callbacks = data.getPrePassivates();
            if (callbacks != null) {
                for (LifecycleCallbackMetaData callback: callbacks) {
                    description.addPrePassivateMethod(MethodResolutionUtils.resolveMethod(callback.getMethodName(), null, componentClass, reflectionIndex));
                }
            }
            callbacks = data.getPostActivates();
            if (callbacks != null) {
                for (LifecycleCallbackMetaData callback: callbacks) {
                    description.addPostActivateMethod(MethodResolutionUtils.resolveMethod(callback.getMethodName(), null, componentClass, reflectionIndex));
                }
            }
View Full Code Here

TOP

Related Classes of org.jboss.metadata.ejb.spec.SessionBeanMetaData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.