Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   * Copyright 2010 JBoss Inc
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
 package org.drools.builder.conf;

A class for the dump directory configuration. I.e., for the directory where Drools will dump generated code for debugging purposes. If this option is not set, drools will generate and compile all code in memory.
 public class DumpDirOption implements SingleValueKnowledgeBuilderOption {
     private static final long serialVersionUID = 510l;

The property name for the drools dump directory configuration
     public static final String PROPERTY_NAME = "drools.dump.dir";
directory reference
     private final File dir;
Private constructor to enforce the use of the factory method

dir directory to set
     private DumpDirOptionFile dir ) {
         this. = dir;
This is a factory method for this DumpDirectoryOption configuration. The factory method is a best practice for the case where the actual object construction is changed in the future.

dir the directory to which drools will dump files
the actual type safe dump directory configuration.
     public static DumpDirOption getFile dir ) {
         return new DumpDirOptiondir );
     public String getPropertyName() {
         return ;
Returns the directory to which drools should dump generated files

     public File getDirectory() {
         return ;
     public String toString() {
         return "DumpDirOption( directory="+(( == null) ? "" : .toString())+" )";
     public int hashCode() {
         final int prime = 31;
         int result = 1;
         result = prime * result + (( == null) ? 0 : .hashCode());
         return result;
     public boolean equals(Object obj) {
         if ( this == obj ) return true;
         if ( obj == null ) return false;
         if ( getClass() != obj.getClass() ) return false;
         DumpDirOption other = (DumpDirOptionobj;
         if (  == null ) {
             if ( other.dir != null ) return false;
         } else if ( !.equalsother.dir ) ) return false;
         return true;
New to GrepCode? Check out our FAQ X