Added contructor to Dispatcher and AspectInit
This commit is contained in:
parent
ef36304f85
commit
fdfbe68eac
1 changed files with 6 additions and 1 deletions
|
|
@ -224,7 +224,10 @@ private[akka] sealed case class AspectInit(
|
|||
val target: Class[_],
|
||||
val actor: Dispatcher,
|
||||
val remoteAddress: Option[InetSocketAddress],
|
||||
val timeout: Long)
|
||||
val timeout: Long){
|
||||
|
||||
def this(target: Class[_],actor: Dispatcher, timeout: Long) = this(target,actor,None,timeout)
|
||||
}
|
||||
|
||||
/**
|
||||
* AspectWerkz Aspect that is turning POJOs into Active Object.
|
||||
|
|
@ -364,6 +367,8 @@ private[akka] class Dispatcher(transactionalRequired: Boolean, val callbacks: Op
|
|||
private var postRestart: Option[Method] = None
|
||||
private var initTxState: Option[Method] = None
|
||||
|
||||
def this(transactionalRequired: Boolean) = this(transactionalRequired,None)
|
||||
|
||||
private[actor] def initialize(targetClass: Class[_], targetInstance: AnyRef) = {
|
||||
if (transactionalRequired || targetClass.isAnnotationPresent(Annotations.transactionrequired)) makeTransactionRequired
|
||||
id = targetClass.getName
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue