element <load-time-weaver> (global)
Namespace:
Type:
anonymous complexType
Content:
empty, 2 attributes
Defined:
Includes:
definitions of 2 attributes
Used:
never
Content Model Diagram
XML Representation Summary
<load-time-weaver
   
 = 
xsd:string
 = 
("on" | "off" | "autodetect") : "autodetect"
/>
Annotation
Activates a Spring LoadTimeWeaver for this application context, available as a bean with the name "loadTimeWeaver". Any bean that implements the LoadTimeWeaverAware interface will then receive the LoadTimeWeaver reference automatically; for example, Spring's JPA bootstrap support. The default weaver is determined automatically. As of Spring 2.5: detecting Sun's GlassFish, Oracle's OC4J, Spring's VM agent and any ClassLoader supported by Spring's ReflectiveLoadTimeWeaver (for example, the TomcatInstrumentableClassLoader). The activation of AspectJ load-time weaving is specified via a simple flag (the 'aspectj-weaving' attribute), with the AspectJ class transformer registered through Spring's LoadTimeWeaver. AspectJ weaving will be activated by default if a "META-INF/aop.xml" resource is present in the classpath. This also activates the current application context for applying dependency injection to non-managed classes that are instantiated outside of the Spring bean factory (typically classes annotated with the @Configurable annotation). This will only happen if the AnnotationBeanConfigurerAspect is on the classpath (i.e. spring-aspects.jar), effectively activating "spring-configured" by default. See Javadoc for org.springframework.context.annotation.EnableLoadTimeWeaving for information on code-based alternatives to bootstrapping load-time weaving support.
XML Source (w/o annotations (5); see within schema source)
<xsd:element name="load-time-weaver">
<xsd:complexType>
<xsd:attribute name="weaver-class" type="xsd:string"/>
<xsd:attribute default="autodetect" name="aspectj-weaving">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="on"/>
<xsd:enumeration value="off"/>
<xsd:enumeration value="autodetect"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
Attribute Detail (all declarations; defined within this component only; 2/2)
aspectj-weaving
Type:
anonymous simpleType (restriction of xsd:string)
Use:
optional
Attribute Value
enumeration of xsd:string
Enumeration:
"on"
 - 
Switches Spring-based AspectJ load-time weaving on.
"off"
 - 
Switches Spring-based AspectJ load-time weaving off.
"autodetect"
 - 
Switches AspectJ load-time weaving on if a "META-INF/aop.xml" resource is present in the classpath. If there is no such resource, then AspectJ load-time weaving will be switched off.
Default:
"autodetect"
Anonymous simpleType
Type Derivation Tree
xsd:string (restriction)
  simpleType
Derivation:
restriction of xsd:string
Facets:
enumeration:
"on"
 - 
Switches Spring-based AspectJ load-time weaving on.
"off"
 - 
Switches Spring-based AspectJ load-time weaving off.
"autodetect"
 - 
Switches AspectJ load-time weaving on if a "META-INF/aop.xml" resource is present in the classpath. If there is no such resource, then AspectJ load-time weaving will be switched off.
XML Source (w/o annotations (3); see within schema source)
<xsd:attribute default="autodetect" name="aspectj-weaving">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="on"/>
<xsd:enumeration value="off"/>
<xsd:enumeration value="autodetect"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>

weaver-class
Type:
xsd:string, predefined
Use:
optional
The fully-qualified classname of the LoadTimeWeaver that is to be activated.
XML Source (w/o annotations (1); see within schema source)
<xsd:attribute name="weaver-class" type="xsd:string"/>

XML schema documentation generated with DocFlex/XML RE 1.8.5 using DocFlex/XML XSDDoc 2.5.0 template set. All content model diagrams generated by Altova XMLSpy via DocFlex/XML XMLSpy Integration.