forked from seam/drools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Shane Bryzak
committed
Oct 26, 2010
1 parent
8edd3e6
commit 43176f4
Showing
13 changed files
with
390 additions
and
193 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
246 changes: 246 additions & 0 deletions
246
api/src/main/java/org/jboss/seam/drools/config/DroolsConfig.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,246 @@ | ||
package org.jboss.seam.drools.config; | ||
|
||
/** | ||
* Drools configuration parameters | ||
* | ||
* @author Shane Bryzak | ||
*/ | ||
public class DroolsConfig | ||
{ | ||
private String kbuilderConfigFile; | ||
private String kbaseConfigFile; | ||
private String ksessionConfigFile; | ||
private String kagentConfigFile; | ||
private String serializationSigningConfigFile; | ||
|
||
private boolean startChangeNotifierService; | ||
private boolean startChangeScannerService; | ||
private int scannerInterval = -1; | ||
private String agentName; | ||
|
||
private String loggerName; | ||
private String loggerType; | ||
private String loggerPath; | ||
private int loggerInterval = 0; | ||
|
||
private boolean disableSeamDelegate; | ||
|
||
private DroolsProperty[] kbuilderProperties = {}; | ||
|
||
private DroolsProperty[] kbaseProperties = {}; | ||
|
||
private DroolsProperty[] ksessionProperties = {}; | ||
|
||
private DroolsProperty[] kagentProperties = {}; | ||
|
||
private DroolsProperty[] serializationSigningProperties = {}; | ||
|
||
public String getKBuilderConfigFile() | ||
{ | ||
return kbuilderConfigFile; | ||
} | ||
|
||
public String getKBaseConfigFile() | ||
{ | ||
return kbaseConfigFile; | ||
} | ||
|
||
public String getKSessionConfigFile() | ||
{ | ||
return ksessionConfigFile; | ||
} | ||
|
||
public String getKAgentConfigFile() | ||
{ | ||
return kagentConfigFile; | ||
} | ||
|
||
public String getSerializationSigningConfigFile() | ||
{ | ||
return serializationSigningConfigFile; | ||
} | ||
|
||
public boolean getStartChangeNotifierService() | ||
{ | ||
return startChangeNotifierService; | ||
} | ||
|
||
public boolean getStartChangeScannerService() | ||
{ | ||
return startChangeScannerService; | ||
} | ||
|
||
public int getScannerInterval() | ||
{ | ||
return scannerInterval; | ||
} | ||
|
||
public String getAgentName() | ||
{ | ||
return agentName; | ||
} | ||
|
||
public String getLoggerName() | ||
{ | ||
return loggerName; | ||
} | ||
|
||
public String getLoggerType() | ||
{ | ||
return loggerType; | ||
} | ||
|
||
public String getLoggerPath() | ||
{ | ||
return loggerPath; | ||
} | ||
|
||
public int getLoggerInterval() | ||
{ | ||
return loggerInterval; | ||
} | ||
|
||
public boolean getDisableSeamDelegate() | ||
{ | ||
return disableSeamDelegate; | ||
} | ||
|
||
public DroolsProperty[] getKBuilderProperties() | ||
{ | ||
return kbuilderProperties; | ||
} | ||
|
||
public DroolsProperty[] getKBaseProperties() | ||
{ | ||
return kbaseProperties; | ||
} | ||
|
||
public DroolsProperty[] getKSessionProperties() | ||
{ | ||
return ksessionProperties; | ||
} | ||
|
||
public DroolsProperty[] getKAgentProperties() | ||
{ | ||
return kagentProperties; | ||
} | ||
|
||
public DroolsProperty[] getSerializationSigningProperties() | ||
{ | ||
return serializationSigningProperties; | ||
} | ||
|
||
public DroolsConfig setKBuilderConfigFile(String fileName) | ||
{ | ||
this.kbuilderConfigFile = fileName; | ||
return this; | ||
} | ||
|
||
public DroolsConfig setKBaseConfigFile(String fileName) | ||
{ | ||
this.kbaseConfigFile = fileName; | ||
return this; | ||
} | ||
|
||
public DroolsConfig setKSessionConfigFile(String fileName) | ||
{ | ||
this.ksessionConfigFile = fileName; | ||
return this; | ||
} | ||
|
||
public DroolsConfig setKAgentConfigFile(String fileName) | ||
{ | ||
this.kagentConfigFile = fileName; | ||
return this; | ||
} | ||
|
||
public DroolsConfig setSerializationSigningConfigFile(String fileName) | ||
{ | ||
this.serializationSigningConfigFile = fileName; | ||
return this; | ||
} | ||
|
||
public DroolsConfig setStartChangeNotifierService(boolean value) | ||
{ | ||
this.startChangeNotifierService = value; | ||
return this; | ||
} | ||
|
||
public DroolsConfig setStartChangeScannerService(boolean value) | ||
{ | ||
this.startChangeScannerService = value; | ||
return this; | ||
} | ||
|
||
public DroolsConfig setScannerInterval(int interval) | ||
{ | ||
this.scannerInterval = interval; | ||
return this; | ||
} | ||
|
||
public DroolsConfig setAgentName(String agentName) | ||
{ | ||
this.agentName = agentName; | ||
return this; | ||
} | ||
|
||
public DroolsConfig setLoggerName(String loggerName) | ||
{ | ||
this.loggerName = loggerName; | ||
return this; | ||
} | ||
|
||
public DroolsConfig setLoggerType(String loggerType) | ||
{ | ||
this.loggerType = loggerType; | ||
return this; | ||
} | ||
|
||
public DroolsConfig setLoggerPath(String loggerPath) | ||
{ | ||
this.loggerPath = loggerPath; | ||
return this; | ||
} | ||
|
||
public DroolsConfig setLoggerInterval(int loggerInterval) | ||
{ | ||
this.loggerInterval = loggerInterval; | ||
return this; | ||
} | ||
|
||
public DroolsConfig setDisableSeamDelegate(boolean value) | ||
{ | ||
this.disableSeamDelegate = value; | ||
return this; | ||
} | ||
|
||
public DroolsConfig setKBuilderProperties(DroolsProperty[] properties) | ||
{ | ||
this.kbuilderProperties = properties; | ||
return this; | ||
} | ||
|
||
public DroolsConfig setKBaseProperties(DroolsProperty[] properties) | ||
{ | ||
this.kbaseProperties = properties; | ||
return this; | ||
} | ||
|
||
public DroolsConfig setKSessionProperties(DroolsProperty[] properties) | ||
{ | ||
this.ksessionProperties = properties; | ||
return this; | ||
} | ||
|
||
public DroolsConfig setKAgentProperties(DroolsProperty[] properties) | ||
{ | ||
this.kagentProperties = properties; | ||
return this; | ||
} | ||
|
||
public DroolsConfig setSerializationSigningProperties(DroolsProperty[] properties) | ||
{ | ||
this.serializationSigningProperties = properties; | ||
return this; | ||
} | ||
} |
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
Oops, something went wrong.