-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MATP-1102 Add strategy message events
- Loading branch information
1 parent
33c7f91
commit e848dda
Showing
7 changed files
with
133 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...egy/strategy-api/src/main/java/org/marketcetera/strategy/events/StrategyMessageEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// this file is automatically generated | ||
// | ||
package org.marketcetera.strategy.events; | ||
|
||
/* $License$ */ | ||
|
||
/** | ||
* Indicates that a strategy message was added. | ||
* | ||
* @author <a href="mailto:colin@marketcetera.com">Colin DuPlantis</a> | ||
* @version $Id$ | ||
* @since $Release$ | ||
*/ | ||
public interface StrategyMessageEvent | ||
extends org.marketcetera.strategy.HasStrategyMessage,org.marketcetera.strategy.events.StrategyEvent | ||
{ | ||
} |
88 changes: 88 additions & 0 deletions
88
...ategy-core/src/main/java/org/marketcetera/strategy/events/SimpleStrategyMessageEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
// | ||
// this file is automatically generated | ||
// | ||
package org.marketcetera.strategy.events; | ||
|
||
import org.marketcetera.core.Preserve; | ||
import org.marketcetera.strategy.StrategyMessage; | ||
|
||
/* $License$ */ | ||
|
||
/** | ||
* Indicates that a strategy message was added. | ||
* | ||
* @author <a href="mailto:colin@marketcetera.com">Colin DuPlantis</a> | ||
* @version $Id$ | ||
* @since $Release$ | ||
*/ | ||
@Preserve | ||
public class SimpleStrategyMessageEvent | ||
implements StrategyMessageEvent | ||
{ | ||
/** | ||
* Create a new SimpleStrategyMessageEvent instance. | ||
*/ | ||
public SimpleStrategyMessageEvent() {} | ||
/** | ||
* Create a new SimpleStrategyMessageEvent instance. | ||
* | ||
* @param inStrategyMessage a <code>StrategyMessage</code> value | ||
*/ | ||
public SimpleStrategyMessageEvent(StrategyMessage inStrategyMessage) | ||
{ | ||
strategyMessage = inStrategyMessage; | ||
} | ||
/** | ||
* Get the strategyMessage value. | ||
* | ||
* @return an <code>org.marketcetera.strategy.StrategyMessage</code> value | ||
*/ | ||
@Override | ||
public org.marketcetera.strategy.StrategyMessage getStrategyMessage() | ||
{ | ||
return strategyMessage; | ||
} | ||
/** | ||
* Set the strategyMessage value. | ||
* | ||
* @param inStrategyMessage an <code>org.marketcetera.strategy.StrategyMessage</code> value | ||
*/ | ||
public void setStrategyMessage(org.marketcetera.strategy.StrategyMessage inStrategyMessage) | ||
{ | ||
strategyMessage = inStrategyMessage; | ||
} | ||
/** | ||
* Get the strategyInstance value. | ||
* | ||
* @return an <code>org.marketcetera.strategy.StrategyInstance</code> value | ||
*/ | ||
@Override | ||
public org.marketcetera.strategy.StrategyInstance getStrategyInstance() | ||
{ | ||
return strategyMessage.getStrategyInstance(); | ||
} | ||
/** | ||
* Set the strategyInstance value. | ||
* | ||
* @param inStrategyInstance an <code>org.marketcetera.strategy.StrategyInstance</code> value | ||
*/ | ||
public void setStrategyInstance(org.marketcetera.strategy.StrategyInstance inStrategyInstance) | ||
{ | ||
strategyMessage.setStrategyInstance(inStrategyInstance); | ||
} | ||
/* (non-Javadoc) | ||
* @see java.lang.Object#toString() | ||
*/ | ||
@Override | ||
public String toString() | ||
{ | ||
StringBuilder builder = new StringBuilder(); | ||
builder.append("StrategyMessageEvent [") | ||
.append("strategyMessage=").append(strategyMessage).append("]"); | ||
return builder.toString(); | ||
} | ||
/** | ||
* strategy message that was created | ||
*/ | ||
private org.marketcetera.strategy.StrategyMessage strategyMessage; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters