congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
EjbSessionBeanModel
Code IndexAdd Tabnine to your IDE (free)

How to use
EjbSessionBeanModel
in
org.jboss.windup.rules.apps.javaee.model

Best Java code snippets using org.jboss.windup.rules.apps.javaee.model.EjbSessionBeanModel (Showing top 6 results out of 315)

origin: org.jboss.windup.rules.apps/rules-java-ee

sessionBean.setEjbId(ejbId);
sessionBean.setDisplayName(displayName);
sessionBean.setBeanName(ejbName);
sessionBean.setEjbLocal(local);
sessionBean.setEjbLocalHome(localHome);
sessionBean.setEjbHome(home);
sessionBean.setEjbRemote(remote);
sessionBean.setEjbClass(ejb);
sessionBean.setSessionType(sessionType);
sessionBean.setTransactionType(transactionType);
  sessionBean.addEnvironmentReference(ref);
origin: org.jboss.windup.rules.apps/rules-java-ee

private void extractEJBMetadata(GraphRewrite event, JavaTypeReferenceModel javaTypeReference)
{
  ((SourceFileModel) javaTypeReference.getFile()).setGenerateSourceReport(true);
  JavaAnnotationTypeReferenceModel annotationTypeReference = (JavaAnnotationTypeReferenceModel) javaTypeReference;
  JavaClassModel ejbClass = getJavaClass(javaTypeReference);
  String ejbName = annotationTypeReference.getAnnotationValues().get("name");
  String sessionType = javaTypeReference.getSourceSnippit().substring(javaTypeReference.getSourceSnippit().lastIndexOf(".") + 1);
  Service<EjbSessionBeanModel> sessionBeanService = new GraphService<>(event.getGraphContext(), EjbSessionBeanModel.class);
  EjbSessionBeanModel sessionBean = sessionBeanService.create();
  sessionBean.setBeanName(ejbName);
  sessionBean.setEjbClass(ejbClass);
  sessionBean.setSessionType(sessionType);
}
origin: org.jboss.windup.rules.apps/windup-rules-java-ee

private void extractEJBMetadata(GraphRewrite event, JavaTypeReferenceModel javaTypeReference)
{
  javaTypeReference.getFile().setGenerateSourceReport(true);
  JavaAnnotationTypeReferenceModel annotationTypeReference = (JavaAnnotationTypeReferenceModel) javaTypeReference;
  JavaClassModel ejbClass = getJavaClass(javaTypeReference);
  String ejbName = getAnnotationLiteralValue(annotationTypeReference, "name");
  if (Strings.isNullOrEmpty(ejbName))
  {
    ejbName = ejbClass.getClassName();
  }
  String sessionType = javaTypeReference.getResolvedSourceSnippit()
        .substring(javaTypeReference.getResolvedSourceSnippit().lastIndexOf(".") + 1);
  Service<EjbSessionBeanModel> sessionBeanService = new GraphService<>(event.getGraphContext(), EjbSessionBeanModel.class);
  EjbSessionBeanModel sessionBean = sessionBeanService.create();
  Set<ProjectModel> applications = ProjectTraversalCache.getApplicationsForProject(event.getGraphContext(), javaTypeReference.getFile().getProjectModel());
  sessionBean.setApplications(applications);
  sessionBean.setBeanName(ejbName);
  sessionBean.setEjbClass(ejbClass);
  sessionBean.setSessionType(sessionType);
}
origin: windup/windup

private void extractEJBMetadata(GraphRewrite event, JavaTypeReferenceModel javaTypeReference)
{
  javaTypeReference.getFile().setGenerateSourceReport(true);
  JavaAnnotationTypeReferenceModel annotationTypeReference = (JavaAnnotationTypeReferenceModel) javaTypeReference;
  JavaClassModel ejbClass = getJavaClass(javaTypeReference);
  String ejbName = getAnnotationLiteralValue(annotationTypeReference, "name");
  if (Strings.isNullOrEmpty(ejbName))
  {
    ejbName = ejbClass.getClassName();
  }
  String sessionType = javaTypeReference.getResolvedSourceSnippit()
        .substring(javaTypeReference.getResolvedSourceSnippit().lastIndexOf(".") + 1);
  Service<EjbSessionBeanModel> sessionBeanService = new GraphService<>(event.getGraphContext(), EjbSessionBeanModel.class);
  EjbSessionBeanModel sessionBean = sessionBeanService.create();
  Set<ProjectModel> applications = ProjectTraversalCache.getApplicationsForProject(event.getGraphContext(), javaTypeReference.getFile().getProjectModel());
  sessionBean.setApplications(applications);
  sessionBean.setBeanName(ejbName);
  sessionBean.setEjbClass(ejbClass);
  sessionBean.setSessionType(sessionType);
}
origin: windup/windup

sessionBean.setApplications(applications);
sessionBean.setEjbId(ejbId);
sessionBean.setDisplayName(displayName);
sessionBean.setBeanName(ejbName);
sessionBean.setEjbLocal(local);
sessionBean.setEjbLocalHome(localHome);
sessionBean.setEjbHome(home);
sessionBean.setEjbRemote(remote);
sessionBean.setEjbClass(ejb);
sessionBean.setSessionType(sessionType);
sessionBean.setTransactionType(transactionType);
  sessionBean.addEnvironmentReference(ref);
origin: org.jboss.windup.rules.apps/windup-rules-java-ee

sessionBean.setApplications(applications);
sessionBean.setEjbId(ejbId);
sessionBean.setDisplayName(displayName);
sessionBean.setBeanName(ejbName);
sessionBean.setEjbLocal(local);
sessionBean.setEjbLocalHome(localHome);
sessionBean.setEjbHome(home);
sessionBean.setEjbRemote(remote);
sessionBean.setEjbClass(ejb);
sessionBean.setSessionType(sessionType);
sessionBean.setTransactionType(transactionType);
  sessionBean.addEnvironmentReference(ref);
org.jboss.windup.rules.apps.javaee.modelEjbSessionBeanModel

Javadoc

Contains EJB Session Bean information and related data.

Most used methods

  • addEnvironmentReference
  • setBeanName
  • setDisplayName
  • setEjbClass
  • setEjbHome
    Contains the Session bean's home interface
  • setEjbId
  • setEjbLocal
    Contains the Session bean's local interface
  • setEjbLocalHome
    Contains the Session bean's local home
  • setEjbRemote
    Contains the Session bean's remote interface
  • setSessionType
  • setTransactionType
  • getApplications
  • setTransactionType,
  • getApplications,
  • getEjbClass,
  • getEjbRemote,
  • setApplications,
  • setClustered,
  • setGlobalJndiReference,
  • setLocalJndiReference,
  • setThreadPool,
  • setTxTimeouts

Popular in Java

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • getApplicationContext (Context)
  • setRequestProperty (URLConnection)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now