The ScannerFactory is used to create scanner objects that will scan a class for its XML class schema. Caching is done by this factory so that repeat retrievals of a Scanner will not require repeat scanning of the class for its XML schema.
Example #1
0
 /// <summary>
 /// Constructor for the <c>Support</c> object. This will
 /// create a support object with the matcher and filter provided.
 /// This allows the user to override the transformations that
 /// are used to convert types to strings and back again.
 /// </summary>
 /// <param name="filter">
 /// this is the filter to use with this support
 /// </param>
 /// <param name="matcher">
 /// this is the matcher used for transformations
 /// </param>
 public Support(Filter filter, Matcher matcher)
 {
     this.transform = new Transformer(matcher);
     this.factory   = new ScannerFactory();
     this.creator   = new Instantiator();
     this.matcher   = matcher;
     this.filter    = filter;
 }
Example #2
0
 /// <summary>
 /// Constructor for the <c>Support</c> object. This will
 /// create a support object with the matcher and filter provided.
 /// This allows the user to override the transformations that
 /// are used to convert types to strings and back again.
 /// </summary>
 /// <param name="filter">
 /// this is the filter to use with this support
 /// </param>
 /// <param name="matcher">
 /// this is the matcher used for transformations
 /// </param>
 public Support(Filter filter, Matcher matcher) {
    this.transform = new Transformer(matcher);
    this.factory = new ScannerFactory();
    this.creator = new Instantiator();
    this.matcher = matcher;
    this.filter = filter;
 }