Advertisement
mihir_amreli

Java Sample Class

Mar 23rd, 2011
1,671
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.15 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement