cvs commit: jakarta-commons-sandbox/mapper/src/share/org/apache/commons/mapper MapperFactoryEvent.java

2003-09-02 Thread dgraham
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  ChangesPath
  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 -  1.3
  +++ MapperFactoryEvent.java   2 Sep 2003 04:14:11 -   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;
   }
   
   }
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: jakarta-commons-sandbox/mapper/src/share/org/apache/commons/mapper MapperFactoryEvent.java

2003-06-20 Thread dgraham
dgraham 2003/06/20 19:36:48

  Modified:mapper/src/share/org/apache/commons/mapper
MapperFactoryEvent.java
  Log:
  Forgot to set this.mapper to what's passed in constructor.
  
  Revision  ChangesPath
  1.3   +1 -0  
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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MapperFactoryEvent.java   21 Jun 2003 01:54:05 -  1.2
  +++ MapperFactoryEvent.java   21 Jun 2003 02:36:47 -  1.3
  @@ -90,6 +90,7 @@
*/
   public MapperFactoryEvent(Object source, Mapper mapper) {
   super(source);
  +this.mapper = mapper;
   }
   
   /**
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]