List of usage examples for org.springframework.core Ordered LOWEST_PRECEDENCE
int LOWEST_PRECEDENCE
To view the source code for org.springframework.core Ordered LOWEST_PRECEDENCE.
Click Source Link
From source file:springfox.documentation.schema.AlternateTypeRules.java
/** * Helper method to create a new alternate rule. * * @param original the original//from w w w . ja v a 2s . c o m * @param alternate the alternate * @return the alternate type rule */ public static AlternateTypeRule newRule(Type original, Type alternate) { return newRule(original, alternate, Ordered.LOWEST_PRECEDENCE); }
From source file:org.joinfaces.annotations.JsfCdiToSpringAutoConfiguration.java
/** * BeanFactoryPostProcessor to enable jsf cdi annotations in spring. * @param environment environment to load de property to set the order * @return beanFactoryPostProcessor to enable jsf-cdi annotations *//*from w ww .j a v a2 s.c om*/ @Bean public static JsfCdiToSpringBeanFactoryPostProcessor jsfCdiToSpringBeanFactoryPostProcessor( Environment environment) { JsfCdiToSpringBeanFactoryPostProcessor bfpp = new JsfCdiToSpringBeanFactoryPostProcessor(); bfpp.setOrder( environment.getProperty(JSF_CDI_CONFIGURATION_ORDER, Integer.class, Ordered.LOWEST_PRECEDENCE)); return bfpp; }
From source file:fr.putnami.pwt.plugin.spring.rpc.server.ComandServiceConfig.java
@Bean @Order(Ordered.LOWEST_PRECEDENCE) public CommandController commandServiceController() { return new CommandController(); }
From source file:com.erinors.hpb.server.handler.JavaBeanHandler.java
public JavaBeanHandler() { super(Ordered.LOWEST_PRECEDENCE); }
From source file:io.getlime.security.powerauth.app.server.service.controller.RESTResponseExceptionResolver.java
/** * Default constructor. */ public RESTResponseExceptionResolver() { super.setOrder(Ordered.LOWEST_PRECEDENCE - 1); }
From source file:springfox.documentation.schema.AlternateTypeRules.java
/** * Helper method to create a new alternate for <code>Map<K,V></code> that results in an alternate of type * <code>List<Entry<K,V>></code>. * * @param key the class that represents a key * @param value the value/*w w w. j ava 2 s . c om*/ * @return the alternate type rule */ public static AlternateTypeRule newMapRule(Class<?> key, Class<?> value) { TypeResolver resolver = new TypeResolver(); return new AlternateTypeRule(resolver.resolve(Map.class, key, value), resolver.resolve(List.class, resolver.resolve(Entry.class, key, value)), Ordered.LOWEST_PRECEDENCE); }
From source file:de.codecentric.batch.configuration.AutomaticJobRegistrarConfigurationSupport.java
@PostConstruct public void initialize() throws Exception { // Default order for the AutomaticJobRegistrar is Ordered.LOWEST_PRECEDENCE. Since we want to register // listeners after the jobs are registered through the AutomaticJobRegistrar, we need to decrement its // order value by one. The creation of the AutomaticJobRegistrar bean is hidden deep in the automatic // batch configuration, so we unfortunately have to do it here. automaticJobRegistrar.setOrder(Ordered.LOWEST_PRECEDENCE - 1); addApplicationContextFactories(automaticJobRegistrar); }
From source file:com.netflix.genie.core.services.impl.RandomizedClusterLoadBalancerImpl.java
/** * {@inheritDoc} */ @Override public int getOrder() { return Ordered.LOWEST_PRECEDENCE; }
From source file:org.wte4j.ui.server.services.RestExceptionHandler.java
@Order(Ordered.LOWEST_PRECEDENCE) @ExceptionHandler(RuntimeException.class) public String handleRuntimeException(final RuntimeException e, NativeWebRequest request) { logger.error("error on processing request from {} ", request.getRemoteUser(), e); return fileUploadResponseFactory.createJsonErrorResponse(MessageKey.INTERNAL_SERVER_ERROR); }
From source file:de.codecentric.boot.admin.services.RegistrationApplicationListener.java
@EventListener @Order(Ordered.LOWEST_PRECEDENCE) public void onApplicationReady(ApplicationReadyEvent event) { if (event.getApplicationContext().getParent() == null && autoRegister) { startRegisterTask();/*from w w w . j av a 2 s . c om*/ } }