Tabnine Logo
BeanManagerImpl.internalGetContext
Code IndexAdd Tabnine to your IDE (free)

How to use
internalGetContext
method
in
org.jboss.weld.manager.BeanManagerImpl

Best Java code snippets using org.jboss.weld.manager.BeanManagerImpl.internalGetContext (Showing top 18 results out of 315)

origin: org.jboss.weld.se/weld-se

/**
 * Indicates whether there is an active context for a given scope.
 *
 * @throws IllegalStateException if there are multiple active scopes for a given context
 * @param scopeType
 * @return true if there is an active context for a given scope, false otherwise
 */
public boolean isContextActive(Class<? extends Annotation> scopeType) {
  return internalGetContext(scopeType) != null;
}
origin: weld/core

@Override
public boolean isContextActive(Class<? extends Annotation> scopeType) {
  return internalGetContext(scopeType) != null;
}
origin: weld/core

@Override
public boolean isContextActive(Class<? extends Annotation> scopeType) {
  return internalGetContext(scopeType) != null;
}
origin: org.jboss.weld.se/weld-se-shaded

@Override
public boolean isContextActive(Class<? extends Annotation> scopeType) {
  return internalGetContext(scopeType) != null;
}
origin: weld/core

@Override
public boolean isContextActive(Class<? extends Annotation> scopeType) {
  return internalGetContext(scopeType) != null;
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

@Override
public boolean isContextActive(Class<? extends Annotation> scopeType) {
  return internalGetContext(scopeType) != null;
}
origin: weld/core

/**
 * Gets an active context of the given scope. Throws an exception if there are no active contexts found or if there are too many matches
 *
 * @throws IllegalStateException if there are multiple active scopes for a given context
 * @param scopeType The scope to match
 * @return A single active context of the given scope
 * @see javax.enterprise.inject.spi.BeanManager#getContext(java.lang.Class)
 */
@Override
public Context getContext(Class<? extends Annotation> scopeType) {
  Context activeContext = internalGetContext(scopeType);
  if (activeContext == null) {
    throw BeanManagerLogger.LOG.contextNotActive(scopeType.getName());
  }
  return activeContext;
}
origin: weld/core

/**
 * Gets an active context of the given scope. Throws an exception if there are no active contexts found or if there are too many matches
 *
 * @throws IllegalStateException if there are multiple active scopes for a given context
 * @param scopeType The scope to match
 * @return A single active context of the given scope
 * @see javax.enterprise.inject.spi.BeanManager#getContext(java.lang.Class)
 */
@Override
public Context getContext(Class<? extends Annotation> scopeType) {
  Context activeContext = internalGetContext(scopeType);
  if (activeContext == null) {
    throw BeanManagerLogger.LOG.contextNotActive(scopeType.getName());
  }
  return activeContext;
}
origin: weld/core

/**
 * Gets an active context of the given scope. Throws an exception if there are no active contexts found or if there are too many matches
 *
 * @throws IllegalStateException if there are multiple active scopes for a given context
 * @param scopeType The scope to match
 * @return A single active context of the given scope
 * @see javax.enterprise.inject.spi.BeanManager#getContext(java.lang.Class)
 */
@Override
public Context getContext(Class<? extends Annotation> scopeType) {
  Context activeContext = internalGetContext(scopeType);
  if (activeContext == null) {
    throw BeanManagerLogger.LOG.contextNotActive(scopeType.getName());
  }
  return activeContext;
}
origin: org.jboss.weld.se/weld-se-shaded

/**
 * Gets an active context of the given scope. Throws an exception if there are no active contexts found or if there are too many matches
 *
 * @throws IllegalStateException if there are multiple active scopes for a given context
 * @param scopeType The scope to match
 * @return A single active context of the given scope
 * @see javax.enterprise.inject.spi.BeanManager#getContext(java.lang.Class)
 */
@Override
public Context getContext(Class<? extends Annotation> scopeType) {
  Context activeContext = internalGetContext(scopeType);
  if (activeContext == null) {
    throw BeanManagerLogger.LOG.contextNotActive(scopeType.getName());
  }
  return activeContext;
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

/**
 * Gets an active context of the given scope. Throws an exception if there are no active contexts found or if there are too many matches
 *
 * @throws IllegalStateException if there are multiple active scopes for a given context
 * @param scopeType The scope to match
 * @return A single active context of the given scope
 * @see javax.enterprise.inject.spi.BeanManager#getContext(java.lang.Class)
 */
@Override
public Context getContext(Class<? extends Annotation> scopeType) {
  Context activeContext = internalGetContext(scopeType);
  if (activeContext == null) {
    throw BeanManagerLogger.LOG.contextNotActive(scopeType.getName());
  }
  return activeContext;
}
origin: org.jboss.weld.se/weld-se

/**
 * Gets an active context of the given scope. Throws an exception if there
 * are no active contexts found or if there are too many matches
 *
 * @throws IllegalStateException if there are multiple active scopes for a given context
 * @param scopeType The scope to match
 * @return A single active context of the given scope
 * @see javax.enterprise.inject.spi.BeanManager#getContext(java.lang.Class)
 */
@Override
public Context getContext(Class<? extends Annotation> scopeType) {
  Context activeContext = internalGetContext(scopeType);
  if (activeContext == null) {
    throw BeanManagerLogger.LOG.contextNotActive(scopeType.getName());
  }
  return activeContext;
}
origin: weld/core

Context context = internalGetContext(resolvedBean.getScope());
if (context != null) {
  @SuppressWarnings({ "unchecked", "rawtypes" })
origin: weld/core

Context context = internalGetContext(resolvedBean.getScope());
if (context != null) {
  @SuppressWarnings({ "unchecked", "rawtypes" })
origin: org.jboss.weld.se/weld-se

Context context = internalGetContext(resolvedBean.getScope());
if (context != null) {
  @SuppressWarnings({ "unchecked", "rawtypes" })
origin: weld/core

Context context = internalGetContext(resolvedBean.getScope());
if (context != null) {
  @SuppressWarnings({ "unchecked", "rawtypes" })
origin: org.jboss.weld.se/weld-se-shaded

Context context = internalGetContext(resolvedBean.getScope());
if (context != null) {
  @SuppressWarnings({ "unchecked", "rawtypes" })
origin: org.jboss.weld.servlet/weld-servlet-shaded

Context context = internalGetContext(resolvedBean.getScope());
if (context != null) {
  @SuppressWarnings({ "unchecked", "rawtypes" })
org.jboss.weld.managerBeanManagerImplinternalGetContext

Popular methods of BeanManagerImpl

  • instance
  • getContextId
  • getServices
  • createCreationalContext
  • getBeans
  • isContextActive
    Indicates whether there is an active context for a given scope.
  • event
  • getContext
    Gets an active context of the given scope. Throws an exception if there are no active contexts found
  • getId
  • getInterceptorModelRegistry
  • getReference
    The name of this method was misleading, use #getInjectableReference(InjectionPoint,Bean,CreationalCo
  • resolve
  • getReference,
  • resolve,
  • resolveDecorators,
  • createAnnotatedType,
  • fireProcessInjectionTarget,
  • getAccessibleLenientObserverNotifier,
  • getBean,
  • getBeanResolver,
  • getEjbDescriptor,
  • getLocalInjectionTargetFactory

Popular in Java

  • Start an intent from android
  • getContentResolver (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • putExtra (Intent)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • ImageIO (javax.imageio)
  • Join (org.hibernate.mapping)
  • Github Copilot alternatives
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