/** * This constructor performs injection on this instance, * based on the current web application context. * <p>Intended for use as a base class. * @see #processInjectionBasedOnCurrentContext */ public SpringBeanAutowiringSupport() { processInjectionBasedOnCurrentContext(this); }
/** * This constructor performs injection on this instance, * based on the current web application context. * <p>Intended for use as a base class. * @see #processInjectionBasedOnCurrentContext */ public SpringBeanAutowiringSupport() { processInjectionBasedOnCurrentContext(this); }
@Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { if (backupService == null) { SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this); } String url = ((HttpServletRequest) request).getRequestURI(); if (isBackupFinishJsonUrl(url)) { ((HttpServletResponse) response).setHeader("Cache-Control", "private, max-age=0, no-cache"); ((HttpServletResponse) response).setDateHeader("Expires", 0); generateResponseForIsBackupFinishedAPI(response); return; } if (backupService.isBackingUp() && !isWhitelisted(url)) { String json = "Server is under maintenance mode, please try later."; String htmlResponse = generateHTMLResponse(); new ServerUnavailabilityResponse((HttpServletRequest) request, (HttpServletResponse) response, json, htmlResponse).render(); } else { chain.doFilter(request, response); } }
protected EventBus getEventBus() { if(eventBus == null) SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this); return this.eventBus; }
/** * Creates a new DefaultNamingScheme and attempts to autowire all of its validators' and generators' dependencies. */ public DefaultNamingScheme() { SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(libraryAliasGenerator); }
/** * This constructor performs injection on this instance, * based on the current web application context. * <p>Intended for use as a base class. * @see #processInjectionBasedOnCurrentContext */ public SpringBeanAutowiringSupport() { processInjectionBasedOnCurrentContext(this); }
protected ProcessToolRegistry getProcessToolRegistry() { if(processToolRegistry == null) SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this); return this.processToolRegistry; }
public IAuthorizationService getAuthorizationService() { if(authorizationService == null) SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this); return authorizationService; }
protected ProcessToolRegistry getProcessToolRegistry() { if(processToolRegistry == null) SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this); return this.processToolRegistry; }
public IUserSource getUserSource() { if(userSource == null) SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this); return userSource; } }
@Override public void start(BundleContext bundleContext) throws Exception { SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this); }
public IWebProcessToolContextFactory getWebProcessToolContextFactory() { if(webProcessToolContextFactory == null) SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this); return webProcessToolContextFactory; }
public WebProcessToolContextFactory() { SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this); }
public LiferayUserSource() { SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this); }
/** * Creates a new OicrNamingScheme and attempts to autowire all of its validators' and generators' dependencies. If no * WebApplicationContext is available, wiring will be skipped, and setters within this class (e.g. * {@link #setSiblingNumberGenerator(SiblingNumberGenerator)}) should be used to complete the necessary wiring manually */ public OicrNamingScheme() { SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(sampleAliasGenerator); SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(libraryAliasGenerator); SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(libraryAliasValidator); }
/** * This constructor performs injection on this instance, * based on the current web application context. * <p>Intended for use as a base class. * @see #processInjectionBasedOnCurrentContext */ public SpringBeanAutowiringSupport() { processInjectionBasedOnCurrentContext(this); }
public FilesRepositoryDataProvider() { SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this); }
@Override public final void clean() { LOGGER.debug("Starting to clean expiring and previously used google authenticator tokens"); SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this); cleanInternal(); LOGGER.debug("Finished cleaning google authenticator tokens"); }
@Override public <T> void enrich(final T service) { SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(service); if (log.isDebugEnabled()) log.debug("Enriched instance of service [" + service.getClass().getName() + "]"); }
@Override public <T> void enrich(final T service) { SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(service); if (log.isDebugEnabled()) log.debug("Enriched instance of service [" + service.getClass().getName() + "]"); }