Lines Matching refs:shardOwner
138 private final Optional<ComponentImplementation> shardOwner; field in ComponentImplementation
169 this.shardOwner = Optional.empty(); in ComponentImplementation()
174 private ComponentImplementation(ComponentImplementation shardOwner, ClassName shardName) { in ComponentImplementation() argument
175 this.graph = shardOwner.graph; in ComponentImplementation()
178 this.subcomponentNames = shardOwner.subcomponentNames; in ComponentImplementation()
179 this.compilerOptions = shardOwner.compilerOptions; in ComponentImplementation()
180 this.shardOwner = Optional.of(shardOwner); in ComponentImplementation()
182 String uniqueFieldName = shardOwner.getUniqueFieldName(fieldName); in ComponentImplementation()
183 this.externalReferenceBlock = CodeBlock.of("$T.this.$N", shardOwner.name, uniqueFieldName); in ComponentImplementation()
184 shardOwner.addTypeSupplier(() -> generate().build()); in ComponentImplementation()
185 shardOwner.addField( in ComponentImplementation()
203 checkState(!shardOwner.isPresent(), "Shards cannot create child components."); in childComponentImplementation()
210 checkState(!shardOwner.isPresent(), "Shards cannot create other shards."); in shardImplementation()