Class DesignParser

java.lang.Object
org.oddjob.arooa.design.DesignParser
All Implemented Interfaces:
ArooaParser<ArooaContext>, DesignNotifier

public class DesignParser extends Object implements ArooaParser<ArooaContext>, DesignNotifier
Parses a configuration to create a DesignInstance.

The Design is created using a DesignFactory. If one is not provided a default factory is used which will first check the ElementMappings of the sessions ArooaDescriptor for a one. If none exists it will provide one that will dynamically create a design from the properties of the class as derived from the element and the mappings.

Author:
rob
  • Constructor Details

    • DesignParser

      public DesignParser()
      Default Constructor. Creates a DesignParser with a StandardArooaSession, and a default factory.
    • DesignParser

      public DesignParser(ArooaSession existingSession)
      Create a DesignParser with the given session.
      Parameters:
      existingSession - A session. If null the standard will be used.
    • DesignParser

      public DesignParser(DesignFactory factory)
      Create a DesignParser for the standard session and given factory.
      Parameters:
      factory - The factory.
    • DesignParser

      public DesignParser(ArooaSession existingSession, DesignFactory factory)
      Create a DesignParser with the given session and factory.
      Parameters:
      existingSession - A Session. If null the standard will be used.
      factory - A factory. If null a default will be used.
  • Method Details