com.atomikos.osgi.sample.internal.impl
Class AccountManagerImpl

java.lang.Object
  extended by com.atomikos.osgi.sample.internal.impl.AccountManagerImpl
All Implemented Interfaces:
AccountManager

public class AccountManagerImpl
extends Object
implements AccountManager


Constructor Summary
AccountManagerImpl()
           
 
Method Summary
 long getBalance(int accno)
           
 String getOwner(int accno)
           
 void setAccountDao(AccountDao accountDao)
           
 void withdraw(int accno, int amount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountManagerImpl

public AccountManagerImpl()
Method Detail

getBalance

public long getBalance(int accno)
                throws Exception
Specified by:
getBalance in interface AccountManager
Throws:
Exception

withdraw

public void withdraw(int accno,
                     int amount)
              throws Exception
Specified by:
withdraw in interface AccountManager
Throws:
Exception

getOwner

public String getOwner(int accno)
                throws Exception
Specified by:
getOwner in interface AccountManager
Throws:
Exception

setAccountDao

public void setAccountDao(AccountDao accountDao)


Copyright © 2012. All Rights Reserved.