org.constretto.spring.internal.resolver
Class DefaultAssemblyContextResolver

java.lang.Object
  extended by org.constretto.spring.internal.resolver.DefaultAssemblyContextResolver
All Implemented Interfaces:
AssemblyContextResolver

public class DefaultAssemblyContextResolver
extends Object
implements AssemblyContextResolver

Provides the default assembly environment resolving strategy which is used if no other implementation found in the current sprint context.

It looks for a system property called CONSTRETTO_ENV, and if that is not found tries to find the variable in the system environment.

If no system property or system environment variable found, it will for the xml support fall back to the default bean, and When autowiring remove all constretto tagged beans as autowire candidates.

Author:
Kaare Nilsen

Field Summary
static String ASSEMBLY_KEY
           
 
Constructor Summary
DefaultAssemblyContextResolver()
           
 
Method Summary
 List<String> getAssemblyContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ASSEMBLY_KEY

public static final String ASSEMBLY_KEY
See Also:
Constant Field Values
Constructor Detail

DefaultAssemblyContextResolver

public DefaultAssemblyContextResolver()
Method Detail

getAssemblyContext

public List<String> getAssemblyContext()
Specified by:
getAssemblyContext in interface AssemblyContextResolver


Copyright © 2008-2012. All Rights Reserved.