Examples of IBeanInfo


Examples of org.ow2.easybeans.api.bean.info.IBeanInfo

        }

        String businessInterfaceClassname = businessInterface.getName();

        // Check if the given interface is a correct interfaces
        IBeanInfo beanInfo = getFactory().getBeanInfo();
        List<String> localInterfaces = beanInfo.getLocalInterfaces();
        List<String> remoteInterfaces = beanInfo.getRemoteInterfaces();

        // Not a business interfaces
        if (!localInterfaces.contains(businessInterfaceClassname) && !remoteInterfaces.contains(businessInterfaceClassname)) {
            throw new IllegalStateException("The interface '" + businessInterface
                    + "' is not a valid interface for this bean '" + beanInfo.getName() + "'. Valid Local Interfaces are '"
                    + localInterfaces + "' and remote interfaces '" + remoteInterfaces + "'.");
        }

        // Now build a local or remote proxy
        boolean localInterface = false;
View Full Code Here

Examples of org.ow2.easybeans.api.bean.info.IBeanInfo

                        // Post-Configure the created factories.
                        if (factory != null) {

                            // Adds more runtime info
                            IBeanInfo beanInfo = factory.getBeanInfo();

                            // EJB Name
                            beanInfo.setName(classAnnotationMetadata.getJCommonBean().getName());

                            // Adds security info.
                            beanInfo.setSecurityInfo(SecurityInfoHelper.getSecurityInfo(classAnnotationMetadata));

                            // Adds Business method info.
                            beanInfo.setBusinessMethodsInfo(BusinessMethodsInfoHelper.getMethods(classAnnotationMetadata));

                            // Cluster config
                            beanInfo.setCluster(classAnnotationMetadata.getCluster());

                            // Set invocation context factor

                            if (Boolean.getBoolean("easybeans.dynamicinterceptors")) {
                              factory.setInvocationContextFactory(new EasyBeansInvocationContextFactory(classAnnotationMetadata,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.