Codota Logo
Managers.getManager
Code IndexAdd Codota to your IDE (free)

How to use
getManager
method
in
org.jboss.jsr299.tck.spi.Managers

Best Java code snippets using org.jboss.jsr299.tck.spi.Managers.getManager (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: org.jboss.weld/weld-porting-package

public ELContext createELContext() {
  if (configuration.getManagers().getManager() instanceof BeanManagerImpl) {
    return EL.createELContext((BeanManagerImpl) configuration.getManagers().getManager());
  } else {
    throw new IllegalStateException("Wrong manager");
  }
}
origin: org.jboss.weld/weld-porting-package-tck10

public ELContext createELContext() {
  if (configuration.getManagers().getManager() instanceof BeanManagerImpl) {
    return EL.createELContext((BeanManagerImpl) configuration.getManagers().getManager());
  } else {
    throw new IllegalStateException("Wrong manager");
  }
}
origin: org.jboss.jsr299.tck/jsr299-tck-impl

protected BeanManager getCurrentManager()
{
 return getCurrentConfiguration().getManagers().getManager();
}
origin: org.jboss.jsr299.tck/jsr299-tck-impl

public void beforePhase(PhaseEvent event)
{
 JSR299Configuration configuration = ConfigurationFactory.get(JSR299Configuration.class);
 if (event.getPhaseId().equals(PhaseId.APPLY_REQUEST_VALUES))
 {
   try
   {
    configuration.getManagers().getManager().getContext(ConversationScoped.class);
    activeBeforeApplyRequestValues = true;
   }
   catch (ContextNotActiveException e)
   {
    activeBeforeApplyRequestValues = false;
   }
 }
 if (event.getPhaseId().equals(PhaseId.RENDER_RESPONSE))
 {
   BeanManager beanManager = configuration.getManagers().getManager();
   Conversation conversation = OldSPIBridge.getInstanceByType(beanManager, Conversation.class);
   HttpServletResponse response = (HttpServletResponse) event.getFacesContext().getExternalContext().getResponse();
   response.addHeader(AbstractConversationTest.CID_HEADER_NAME, conversation.getId() == null ? " null" : conversation.getId());
   response.addHeader(AbstractConversationTest.LONG_RUNNING_HEADER_NAME, String.valueOf(!conversation.isTransient()));
   response.addHeader(Cloud.RAINED_HEADER_NAME, new Boolean(OldSPIBridge.getInstanceByType(beanManager, Cloud.class).isRained()).toString());
   response.addHeader(ACTIVE_BEFORE_APPLY_REQUEST_VALUES_HEADER_NAME, new Boolean(activeBeforeApplyRequestValues).toString());
 }
}
org.jboss.jsr299.tck.spiManagersgetManager

Popular methods of Managers

    Popular in Java

    • Reactive rest calls using spring rest template
    • onRequestPermissionsResult (Fragment)
    • getSystemService (Context)
    • putExtra (Intent)
    • Kernel (java.awt.image)
    • PrintStream (java.io)
      A PrintStream adds functionality to another output stream, namely the ability to print representatio
    • System (java.lang)
      Provides access to system-related information and resources including standard input and output. Ena
    • Time (java.sql)
      Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
    • Modifier (javassist)
      The Modifier class provides static methods and constants to decode class and member access modifiers
    • JCheckBox (javax.swing)
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now