- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Underscore and java interfaces
Tue, 2011-12-27, 14:56
Dear all,why does the following code not compile with error: unbound placeholder parameter on val gigaSpace:GigaSpace = _ ;
(The val value will be injected through reflection by Spring IOC)
Best RegardsEdmondo
class CurveComputationEventHandlersFactory { @Autowired val partitionManager:PartitionManager=_; @Autowired val gottwareRuntimeConfiguration:GottwareRuntimeConfiguration=_; @GigaSpaceContext val gigaSpace:GigaSpace=_;
}
(The val value will be injected through reflection by Spring IOC)
Best RegardsEdmondo
class CurveComputationEventHandlersFactory { @Autowired val partitionManager:PartitionManager=_; @Autowired val gottwareRuntimeConfiguration:GottwareRuntimeConfiguration=_; @GigaSpaceContext val gigaSpace:GigaSpace=_;
}
I think you want vars.