Exemple #1
0
  public FlavorIncludeDefImpl(Builder builder) throws InvalidDefinitionException {
    super(builder);
    this.source = builder.source;
    this.parentDescriptor = builder.parentDescriptor;

    String[] split = source.split(":");
    if (split.length != 2) {
      throw new InvalidDefinitionException(ERROR_MSG, getLocation());
    }

    namespace = split[0];
    bundle = split[1];

    String fmt = String.format("%s://%s:*", DefDescriptor.CUSTOM_FLAVOR_PREFIX, namespace);
    this.filter = new DescriptorFilter(fmt, DefType.FLAVORED_STYLE);

    this.hashCode = AuraUtil.hashCode(descriptor, location, source);
  }