castor

Improve interface of XMLClassDescriptorResolver(Impl)

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.1
  • Fix Version/s: 1.1.1
  • Component/s: XML
  • Labels:
    None
  • Number of attachments :
    1

Description

Add the following methods

/**

  • {@inheritDoc}
    */
    public void addClass(final String className) throws ResolverException { // _descriptorCache.loadCDRList(className, _loader); }

    /**
    * {@inheritDoc}

    */
    public void addClasses(final String[] classNames) throws ResolverException { // _descriptorCache.loadCDRList(className, _loader); }

/**

  • {@inheritDoc}
    */
    public void addPackage(final String packageName) throws ResolverException { _descriptorCache.loadCDRList(packageName, _loader); }

    /**
    * {@inheritDoc}

    */
    public void addPackages(final String[] packageNames) throws ResolverException

    Unknown macro: { for (int i = 0; i < packageNames.length; i++) { _descriptorCache.loadCDRList(packageNames[i], _loader); } }

and deprecate loadClassDescriptors(String packageName) in order to increase readability et alias, ease of use

Activity

Hide
Ralf Joachim added a comment -

Sounds reasonable.

Show
Ralf Joachim added a comment - Sounds reasonable.
Hide
Werner Guttmann added a comment -

Final patch for review.

Show
Werner Guttmann added a comment - Final patch for review.
Hide
Ralf Joachim added a comment -

+1

Show
Ralf Joachim added a comment - +1
Hide
Werner Guttmann added a comment -

Improved src/doc/xml-best-practise.xml as well.

Show
Werner Guttmann added a comment - Improved src/doc/xml-best-practise.xml as well.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
30m
Original Estimate - 30 minutes
Remaining:
30m
Remaining Estimate - 30 minutes
Logged:
Not Specified
Time Spent - Not Specified