/** * {@inheritDoc} The InternalContext itself is not stored! But all values of interest are read and * stored in local attributes. */ public void setInternalContext(final InternalContext internalContext) { _mappingLoader = internalContext.getMappingLoader(); _classLoader = internalContext.getClassLoader(); _useIntrospector = internalContext.getUseIntrospector(); _loadPackageMappings = internalContext.getLoadPackageMapping(); _introspector = internalContext.getIntrospector(); _resolverStrategy = internalContext.getResolverStrategy(); }
/** * To set all strategy properties to the values of the attributes of this instance. * Only exception is the class loader property which is always set in the resolve method. */ private void setAttributesIntoStrategy() { ResolverStrategy strategy = _internalContext.getResolverStrategy(); strategy.setProperty( ResolverStrategy.PROPERTY_LOAD_PACKAGE_MAPPINGS, _internalContext.getLoadPackageMapping()); strategy.setProperty( ResolverStrategy.PROPERTY_USE_INTROSPECTION, _internalContext.getUseIntrospector()); strategy.setProperty( ResolverStrategy.PROPERTY_MAPPING_LOADER, _internalContext.getMappingLoader()); strategy.setProperty( ResolverStrategy.PROPERTY_INTROSPECTOR, _internalContext.getIntrospector()); }