Codota Logo
ConfigurableBeanFactory.getAccessControlContext
Code IndexAdd Codota 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)

  • Common ways to obtain ConfigurableBeanFactory
private void myMethod () {
ConfigurableBeanFactory c =
  • Codota IconConfigurableApplicationContext configurableApplicationContext;configurableApplicationContext.getBeanFactory()
  • Codota IconDefaultMessageHandlerMethodFactory defaultMessageHandlerMethodFactory;(ConfigurableBeanFactory) defaultMessageHandlerMethodFactory.beanFactory
  • Smart code suggestions by Codota
}
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

  • Finding current android device location
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • getSystemService (Context)
  • Kernel (java.awt.image)
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
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