Skip to content

Commit d87ef5a

Browse files
committed
e
1 parent 0e8765a commit d87ef5a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

modules/packed/src/main/java/app/packed/container/ContainerTemplate.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@ public interface Configurator {
9494
* @return
9595
* @see app.packed.component.guest.FromComponentGuest
9696
*/
97-
default <T> Configurator carrierProvideConstant(Class<T> key, T arg) {
98-
return carrierProvideConstant(Key.of(key), arg);
97+
default <T> Configurator withCarrierProvideConstant(Class<T> key, T arg) {
98+
return withCarrierProvideConstant(Key.of(key), arg);
9999
}
100100

101101
/**
102102
* @see FromLifetimeChannel
103103
*/
104-
default <T> Configurator carrierProvideConstant(Key<T> key, T arg) {
104+
default <T> Configurator withCarrierProvideConstant(Key<T> key, T arg) {
105105
throw new UnsupportedOperationException();
106106
}
107107

@@ -112,7 +112,7 @@ default <T> Configurator carrierProvideConstant(Key<T> key, T arg) {
112112
* the tags to add
113113
* @return this configurator
114114
*/
115-
Configurator componentTag(String... tags);
115+
Configurator withComponentTag(String... tags);
116116

117117
// // Maybe put it on ContainerTemplate.
118118
// default Configurator configureRootContainerHandleFactory(Function<? super ContainerTemplate.Installer<?>, ? extends ContainerHandle<?>> handleFactory) {
@@ -138,9 +138,9 @@ default <T> Configurator carrierProvideConstant(Key<T> key, T arg) {
138138
// Configurator carrierType(Class<?> beanClass);
139139

140140
// Har kun visibility for the installing extension
141-
Configurator lifetimeOperationAddContext(int index, ContextTemplate template);
141+
Configurator withLifetimeOperationAddContext(int index, ContextTemplate template);
142142

143-
default <T> Configurator localSet(ContainerBuildLocal<T> containerLocal, T value) {
143+
default <T> Configurator withLocalSet(ContainerBuildLocal<T> containerLocal, T value) {
144144
throw new UnsupportedOperationException();
145145
}
146146

modules/packed/src/main/java/internal/app/packed/container/PackedContainerTemplate.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public PackedContainerTemplateConfigurator<H> expectResult(Class<?> resultType)
104104

105105
/** {@inheritDoc} */
106106
@Override
107-
public PackedContainerTemplateConfigurator<H> lifetimeOperationAddContext(int index, ContextTemplate template) {
107+
public PackedContainerTemplateConfigurator<H> withLifetimeOperationAddContext(int index, ContextTemplate template) {
108108
throw new UnsupportedOperationException();
109109
}
110110

@@ -131,7 +131,7 @@ public PackedContainerTemplateConfigurator<H> withWirelets(Wirelet... wirelets)
131131

132132
/** {@inheritDoc} */
133133
@Override
134-
public Configurator componentTag(String... tags) {
134+
public Configurator withComponentTag(String... tags) {
135135
this.pbt = new PackedContainerTemplate<>(pbt.kind, pbt.holderClass, pbt.links, pbt.resultType,
136136
ComponentTagHolder.copyAndAdd(pbt.componentTags, tags), pbt.isManaged);
137137
return this;

0 commit comments

Comments
 (0)