Tabnine Logo
org.jboss.ejb3.context.spi
Code IndexAdd Tabnine to your IDE (free)

How to use org.jboss.ejb3.context.spi

Best Java code snippets using org.jboss.ejb3.context.spi (Showing top 20 results out of 315)

origin: org.jboss.ejb3.context/jboss-ejb3-context-base

public EJBHome getEJBHome()
{
 return manager.getEJBHome();
}
origin: org.jboss.ejb3.context/jboss-ejb3-context-base

public EJBLocalHome getEJBLocalHome()
{
 return manager.getEJBLocalHome();
}
origin: org.jboss.ejb3.context/jboss-ejb3-context-base

public <T> T getBusinessObject(Class<T> businessInterface) throws IllegalStateException
{
 // we need an instance attached
 SessionContext ctx = getEJBContext();
 return ctx.getManager().getBusinessObject(ctx, businessInterface);      
}
origin: org.jboss.ejb3/jboss-ejb3-core

@Override
public EnterpriseBeanEffigy getEffigy()
{
 // you've got to love the compiler
 InvocationContext ctx = ((org.jboss.ejb3.core.context.EJBInvocation) this).getInvocationContext();
 return ((EJBContainer) ctx.getEJBContext().getManager()).getEffigy();
}
origin: org.jboss.ejb3.context/jboss-ejb3-context-base

public EJBLocalObject getEJBLocalObject() throws IllegalStateException
{
 SessionContext ctx = getEJBContext();
 return ctx.getManager().getEJBLocalObject(ctx);
}
origin: org.jboss.ejb3.context/jboss-ejb3-context-base

public EJBObject getEJBObject() throws IllegalStateException
{
 SessionContext ctx = getEJBContext();
 return ctx.getManager().getEJBObject(ctx);
}
origin: org.jboss.ejb3.context/jboss-ejb3-context-base

protected InvocationContext getCurrentInvocationContext()
{
 InvocationContext current = CurrentInvocationContext.get(InvocationContext.class);
 assert current.getEJBContext() == this;
 return current;
}
origin: org.jboss.ejb3/jboss-ejb3-core

  public boolean wasCancelCalled()
  {
   return getDelegate().wasCancelCalled();
  }
}
origin: org.jboss.ejb3.context/jboss-ejb3-context-base

public EJBObject getEJBObject() throws IllegalStateException
{
 // to allow override per invocation
 return getCurrentInvocationContext().getEJBObject();
}
origin: org.jboss.ejb3.context/jboss-ejb3-context-base

public UserTransaction getUserTransaction() throws IllegalStateException
{
 // to allow override per invocation
 return getCurrentInvocationContext().getUserTransaction();
}
origin: org.jboss.ejb3.context/jboss-ejb3-context-base

  public void setRollbackOnly() throws IllegalStateException
  {
   // to allow override per invocation
   getCurrentInvocationContext().setRollbackOnly();
  }
}
origin: org.jboss.ejb3.context/jboss-ejb3-context-base

public <T> T getBusinessObject(Class<T> businessInterface) throws IllegalStateException
{
 // to allow override per invocation
 return getCurrentInvocationContext().getBusinessObject(businessInterface);
}
origin: org.jboss.ejb3.context/jboss-ejb3-context-base

public TimerService getTimerService() throws IllegalStateException
{
 // to allow override per invocation
 return getCurrentInvocationContext().getTimerService();
}
origin: org.jboss.ejb3/jboss-ejb3-core

@SuppressWarnings("deprecation")
public Identity getCallerIdentity()
{
 return getDelegate().getCallerIdentity();
}
origin: org.jboss.ejb3/jboss-ejb3-core

@SuppressWarnings("deprecation")
public boolean isCallerInRole(Identity role)
{
 return getDelegate().isCallerInRole(role);
}
origin: org.jboss.ejb3.context/jboss-ejb3-context-base

protected SessionInvocationContext getCurrentInvocationContext()
{
 SessionInvocationContext current = CurrentInvocationContext.get(SessionInvocationContext.class);
 assert current.getEJBContext() == this;
 return current;
}
origin: org.jboss.ejb3.context/jboss-ejb3-context-base

public EJBLocalObject getEJBLocalObject() throws IllegalStateException
{
 // to allow override per invocation
 return getCurrentInvocationContext().getEJBLocalObject();
}
origin: org.jboss.ejb3.context/jboss-ejb3-context-base

public Principal getCallerPrincipal()
{
 // per invocation
 return getCurrentInvocationContext().getCallerPrincipal();
}
origin: org.jboss.ejb3.context/jboss-ejb3-context-base

public boolean getRollbackOnly() throws IllegalStateException
{
 // to allow override per invocation
 return getCurrentInvocationContext().getRollbackOnly();
}
origin: org.jboss.ejb3.context/jboss-ejb3-context-base

public boolean isCallerInRole(String roleName)
{
 // TODO: really?
 return getManager().isCallerInRole(getCallerPrincipal(), roleName);
}
org.jboss.ejb3.context.spi

Most used classes

  • EJBContext
  • InvocationContext
  • BeanManager
  • SessionContext
  • SessionInvocationContext
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