/** * 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; }
@Override public boolean isContextActive(Class<? extends Annotation> scopeType) { return internalGetContext(scopeType) != null; }
@Override public boolean isContextActive(Class<? extends Annotation> scopeType) { return internalGetContext(scopeType) != null; }
@Override public boolean isContextActive(Class<? extends Annotation> scopeType) { return internalGetContext(scopeType) != null; }
@Override public boolean isContextActive(Class<? extends Annotation> scopeType) { return internalGetContext(scopeType) != null; }
@Override public boolean isContextActive(Class<? extends Annotation> scopeType) { return internalGetContext(scopeType) != null; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
Context context = internalGetContext(resolvedBean.getScope()); if (context != null) { @SuppressWarnings({ "unchecked", "rawtypes" })
Context context = internalGetContext(resolvedBean.getScope()); if (context != null) { @SuppressWarnings({ "unchecked", "rawtypes" })
Context context = internalGetContext(resolvedBean.getScope()); if (context != null) { @SuppressWarnings({ "unchecked", "rawtypes" })
Context context = internalGetContext(resolvedBean.getScope()); if (context != null) { @SuppressWarnings({ "unchecked", "rawtypes" })
Context context = internalGetContext(resolvedBean.getScope()); if (context != null) { @SuppressWarnings({ "unchecked", "rawtypes" })
Context context = internalGetContext(resolvedBean.getScope()); if (context != null) { @SuppressWarnings({ "unchecked", "rawtypes" })