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 java.lang.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 java.lang.String ASSEMBLY_KEY
           
 
Constructor Summary
DefaultAssemblyContextResolver()
           
 
Method Summary
 java.util.List<java.lang.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 java.lang.String ASSEMBLY_KEY
See Also:
Constant Field Values
Constructor Detail

DefaultAssemblyContextResolver

public DefaultAssemblyContextResolver()
Method Detail

getAssemblyContext

public java.util.List<java.lang.String> getAssemblyContext()
Specified by:
getAssemblyContext in interface AssemblyContextResolver


Copyright © 2008-2011. All Rights Reserved.