commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgra...@apache.org
Subject cvs commit: jakarta-commons-sandbox/mapper/src/share/org/apache/commons/mapper MapperFactoryEvent.java
Date Tue, 02 Sep 2003 04:14:11 GMT
dgraham     2003/09/01 21:14:11

  Modified:    mapper/src/share/org/apache/commons/mapper
                        MapperFactoryEvent.java
  Log:
  Added constructors that take MapperFactory instead of Object and 
  a getMapperFactory() method.
  
  Revision  Changes    Path
  1.4       +18 -11    jakarta-commons-sandbox/mapper/src/share/org/apache/commons/mapper/MapperFactoryEvent.java
  
  Index: MapperFactoryEvent.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/mapper/src/share/org/apache/commons/mapper/MapperFactoryEvent.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- MapperFactoryEvent.java	21 Jun 2003 02:36:47 -0000	1.3
  +++ MapperFactoryEvent.java	2 Sep 2003 04:14:11 -0000	1.4
  @@ -77,27 +77,34 @@
   
       /**
        * Constructor for MapperFactoryEvent.
  -     * @param source The MapperFactory that generated the event.
  +     * @param factory The MapperFactory that generated the event.
        */
  -    public MapperFactoryEvent(Object source) {
  -        super(source);
  +    public MapperFactoryEvent(MapperFactory factory) {
  +        super(factory);
       }
  -    
  +
       /**
        * Constructor for MapperFactoryEvent.
  -     * @param source The MapperFactory that generated the event.
  +     * @param factory The MapperFactory that generated the event.
        * @param mapper A Mapper related to this event. 
        */
  -    public MapperFactoryEvent(Object source, Mapper mapper) {
  -        super(source);
  +    public MapperFactoryEvent(MapperFactory factory, Mapper mapper) {
  +        super(factory);
           this.mapper = mapper;
  -    }    
  +    }
   
       /**
        * @return The Mapper that is related to this event.
        */
       public Mapper getMapper() {
           return this.mapper;
  +    }
  +
  +    /**
  +     * @return The MapperFactory that generated this event.
  +     */
  +    public MapperFactory getMapperFactory() {
  +        return (MapperFactory) this.source;
       }
   
   }
  
  
  

Mime
View raw message