All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.security.fences.config.FieldFence Maven / Gradle / Ivy

Go to download

Augments Java's access control by checking that a Maven Project and all its dependencies conform to a policy that specifies which classes/packages can link to which others.

There is a newer version: 1.9-beta
Show newest version
package com.google.security.fences.config;

import com.google.security.fences.policy.ApiElement;
import com.google.security.fences.policy.ApiElementType;

/** A class for a field in a class. */
public final class FieldFence extends NamedLeafFence {

  @Override
  void visit(FenceVisitor v, ApiElement el) {
    v.visit(this, el.child(getName(), ApiElementType.FIELD));
  }

  @Override
  protected void addToClass(ClassFence container) {
    container.setField(this);
  }

  @Override
  String getConfigurationElementName() {
    return "field";
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy