Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Java Sample Class

By: mihir_amreli on Mar 23rd, 2011  |  syntax: Java  |  size: 1.15 KB  |  views: 260  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. /*
  2. *   Date Created :- 08-01-2011
  3.  *  TO DO :- later we can add here implementation for other account category wise voucher store .
  4.  */
  5. package ledger.account;
  6.  
  7. import ledger.account.grouphead.party.PartyVoucherStore;
  8.  
  9. /**
  10.  * @author Administrator
  11.  *
  12.  */
  13. public class SimpleVoucherStoreFactory {
  14.        
  15.            
  16.            
  17.            /*
  18.             *  Voucher Store is Created runtime by Account Ledger Category for which we r
  19.             *  Looking this Ledger.Here storeType means account Ledger Type .for example whether it is of type
  20.             *  party , cash , bank etc..
  21.             *  
  22.            */
  23.           /**
  24.            *   @author Mihir Parekh
  25.            *   @param  storeType which is actually account type of the given account ledger .
  26.            *   @return returns VoucherStore type Concrete Object based on storeType parameter.
  27.            */
  28.            public static VoucherStore createVoucherStore(String storeType) throws Exception{
  29.                        
  30.                       VoucherStore voucherStore = null;
  31.                      
  32.                       /*
  33.                        *  Right Now we r just Passing the Object of PartyVoucherStore Object
  34.                       */
  35.                      
  36.                       voucherStore = new PartyVoucherStore();
  37.                      
  38.                   return voucherStore;
  39.            }
  40. }