Announcement Announcement Module
Collapse
No announcement yet.
Disable castor introspection Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Disable castor introspection

    Hi All,

    Does anyone know how to disable default introspection if a mapping file is not found?

    I am developing a generic marshaling/unmarshaling component, and if a user sends in a domain obj for marshaling which does not have an associated mapping file, it should NOT default to introspection.

    I have already tried

    Code:
    org.exolab.castor.xml.lenient.introspected.element.strictness=false
    which has no effect.

    In the log i can see:

    Code:
    DEBUG [CastorXMLStrategy] Setting property: org.exolab.castor.xml.util.ResolverStrategy.useIntrospection to value: true
    But i dont know how to get to set this prop.

    Any ideas??

    Thanks.
Working...
X