Tabnine Logo
ConfigurableBeanFactory.getAccessControlContext
Code IndexAdd Tabnine to your IDE (free)

How to use
getAccessControlContext
method
in
org.springframework.beans.factory.config.ConfigurableBeanFactory

Best Java code snippets using org.springframework.beans.factory.config.ConfigurableBeanFactory.getAccessControlContext (Showing top 4 results out of 315)

origin: org.eclipse.gemini.blueprint/gemini-blueprint-core

public static AccessControlContext getAccFrom(BeanFactory beanFactory) {
  AccessControlContext acc = null;
  if (beanFactory != null) {
    if (beanFactory instanceof ConfigurableBeanFactory) {
      return ((ConfigurableBeanFactory) beanFactory).getAccessControlContext();
    }
  }
  return acc;
}
origin: org.eclipse.gemini.blueprint/gemini-blueprint-extender

private AccessControlContext getAcc() {
  AutowireCapableBeanFactory beanFactory = context.getAutowireCapableBeanFactory();
  if (beanFactory instanceof ConfigurableBeanFactory) {
    return ((ConfigurableBeanFactory) beanFactory).getAccessControlContext();
  }
  return null;
}
 
origin: com.github.vindell/spring-boot-starter-disruptor

/**
 * Delegate the creation of the access control context to the
 * {@link #setSecurityContextProvider SecurityContextProvider}.
 * @return {@link AccessControlContext} instance
 */
public AccessControlContext getAccessControlContext() {
  if(this.securityContextProvider != null){
    return  this.securityContextProvider.getAccessControlContext();
  }
  if(this.disruptorContext.getApplicationContext().getAutowireCapableBeanFactory() instanceof ConfigurableBeanFactory){
    ConfigurableBeanFactory beanFactory  =  (ConfigurableBeanFactory) this.disruptorContext.getApplicationContext().getAutowireCapableBeanFactory() ;
    return beanFactory.getAccessControlContext();
  }
  
  return AccessController.getContext();
}
 
origin: vindell/spring-boot-starter-disruptor

/**
 * Delegate the creation of the access control context to the
 * {@link #setSecurityContextProvider SecurityContextProvider}.
 * @return {@link AccessControlContext} instance
 */
public AccessControlContext getAccessControlContext() {
  if(this.securityContextProvider != null){
    return  this.securityContextProvider.getAccessControlContext();
  }
  if(this.disruptorContext.getApplicationContext().getAutowireCapableBeanFactory() instanceof ConfigurableBeanFactory){
    ConfigurableBeanFactory beanFactory  =  (ConfigurableBeanFactory) this.disruptorContext.getApplicationContext().getAutowireCapableBeanFactory() ;
    return beanFactory.getAccessControlContext();
  }
  
  return AccessController.getContext();
}
 
org.springframework.beans.factory.configConfigurableBeanFactorygetAccessControlContext

Javadoc

Provides a security access control context relevant to this factory.

Popular methods of ConfigurableBeanFactory

  • resolveEmbeddedValue
    Resolve the given embedded value, e.g. an annotation attribute.
  • getBeanExpressionResolver
    Return the resolution strategy for expressions in bean definition values.
  • getBean
  • registerSingleton
    Register the given existing object as singleton in the bean factory, under the given bean name.The g
  • getTypeConverter
    Obtain a type converter as used by this BeanFactory. This may be a fresh instance for each call, sin
  • getBeanClassLoader
    Return this factory's class loader for loading bean classes (only null if even the system ClassLoade
  • containsBean
  • getConversionService
    Return the associated ConversionService, if any.
  • getMergedBeanDefinition
    Return a merged BeanDefinition for the given bean name, merging a child bean definition with its par
  • isCurrentlyInCreation
    Determine whether the specified bean is currently in creation.
  • getSingletonMutex
  • destroySingletons
    Destroy all cached singletons in this factory. To be called on shutdown of a factory.
  • getSingletonMutex,
  • destroySingletons,
  • getSingletonNames,
  • registerDependentBean,
  • containsSingleton,
  • destroyBean,
  • isFactoryBean,
  • isSingleton,
  • registerAlias,
  • addBeanPostProcessor

Popular in Java

  • Making http requests using okhttp
  • setRequestProperty (URLConnection)
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Option (scala)
  • 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