1 8 package org.apache.avalon.phoenix; 9 10 import java.util.EventObject ; 11 import org.apache.avalon.phoenix.metadata.SarMetaData; 12 13 20 public final class ApplicationEvent 21 extends EventObject 22 { 23 private final String m_name; 24 25 private final SarMetaData m_sarMetaData; 26 27 33 public ApplicationEvent( final String name, 34 final SarMetaData sarMetaData ) 35 { 36 super( name ); 37 38 if( null == name ) 39 { 40 throw new NullPointerException ( "name" ); 41 } 42 if( null == sarMetaData ) 43 { 44 throw new NullPointerException ( "sarMetaData" ); 45 } 46 47 m_name = name; 48 m_sarMetaData = sarMetaData; 49 } 50 51 56 public String getName() 57 { 58 return m_name; 59 } 60 61 66 public SarMetaData getSarMetaData() 67 { 68 return m_sarMetaData; 69 } 70 } 71 | Popular Tags |