Exemplo n.º 1
0
  @Override
  public void applyProperties() throws Exception {

    // Set defaults for properties not yet set
    super.setDefaultsIfMissing();

    // Apply parent object's properties (just the name variable actually)
    super.applyProperties();
  }
 /*
  * (non-Javadoc)
  *
  * @see modularization.ModuleImpl#applyProperties()
  */
 @Override
 public void applyProperties() throws Exception {
   super.setDefaultsIfMissing();
   if (this.getProperties().containsKey(PROPERTYKEY_NEO4JURI))
     this.neo4jUri = this.getProperties().getProperty(PROPERTYKEY_NEO4JURI);
   if (this.getProperties().containsKey(PROPERTYKEY_NEO4JUSR))
     this.neo4jUsr = this.getProperties().getProperty(PROPERTYKEY_NEO4JUSR);
   if (this.getProperties().containsKey(PROPERTYKEY_NEO4JPWD))
     this.neo4jPwd = this.getProperties().getProperty(PROPERTYKEY_NEO4JPWD);
   if (this.getProperties().containsKey(PROPERTYKEY_USENEO4J))
     this.useNeo4j = Boolean.parseBoolean(this.getProperties().getProperty(PROPERTYKEY_USENEO4J));
   if (this.getProperties().containsKey(PROPERTYKEY_INDIVIDUALBRANCHES))
     this.individualBranches =
         Boolean.parseBoolean(this.getProperties().getProperty(PROPERTYKEY_INDIVIDUALBRANCHES));
   if (this.getProperties().containsKey(PROPERTYKEY_INDIVIDUALROOTNODES))
     this.individualRootNodes =
         Boolean.parseBoolean(this.getProperties().getProperty(PROPERTYKEY_INDIVIDUALROOTNODES));
   super.applyProperties();
 }