/** * Sets the service target. * * @param value the reference in the form component/service/binding where reference and binding may be optional * @return the builder */ public WireBuilder target(String value) { checkState(); service = parseTarget(value); return this; }
/** * Builds the channel definition. * * @return the definition */ public Channel build() { checkState(); freeze(); return definition; }
public DataSourceConfiguration build() { checkState(); freeze(); return configuration; }
private static void addDomainSubsystem(CompositeBuilder compositeBuilder) { SystemComponentBuilder componentBuilder = newBuilder("ApplicationDomain", DistributedDomain.class); componentBuilder.reference("logicalComponentManager", "LogicalComponentManager"); compositeBuilder.component(componentBuilder.build()); compositeBuilder.component(newBuilder(ContributionHelperImpl.class).build()); compositeBuilder.component(newBuilder(LogicalComponentManagerImpl.class).build()); compositeBuilder.component(newBuilder(LocalDeployer.class).build()); compositeBuilder.component(newBuilder(SingletonComponentSynthesizer.class).build()); compositeBuilder.wire(WireBuilder.newBuilder().source("RuntimeDomain/deployer").target("LocalDeployer").build()); }
public DataSourceResource build() { checkState(); freeze(); return definition; } }
public ApplicationResource build() { checkState(); freeze(); return resource; } }
/** * Creates a new builder using the given component name and implementation class. * * @param name the component name name * @param clazz the implementation class * @return the builder */ public static JavaComponentBuilder newBuilder(String name, Class<?> clazz) { return new JavaComponentBuilder(name, clazz).implementation(clazz); }
public Component<JavaImplementation> build() { checkState(); freeze(); return component; }
/** * Builds the channel definition. * * @return the definition */ public Channel build() { checkState(); freeze(); return channel; }
/** * Builds the composite. * * @return the built composite */ public Composite build() { checkState(); freeze(); return composite; }
/** * Creates a builder. * * @return the builder */ public static TimerPoolResourceBuilder newBuilder(String name, int coreSize) { return new TimerPoolResourceBuilder(name, coreSize); }
/** * Creates a builder. * * @return the builder */ public static DataSourceResourceBuilder newBuilder() { return new DataSourceResourceBuilder(); }
/** * Creates a ring buffer channel builder. * * @param name the channel name * @return the builder */ public static RingBufferChannelBuilder newBuilder(String name) { return new RingBufferChannelBuilder(name); }
/** * Creates a builder. * * @return the builder */ public static JndiContextBuilder newBuilder() { return new JndiContextBuilder(); }
/** * Creates a new builder. * * @return the builder */ public static WireBuilder newBuilder() { return new WireBuilder(); }
/** * Creates a builder. * * @return the builder */ public static DataSourceConfigurationBuilder newBuilder(String name, String driverClass, DataSourceType type) { return new DataSourceConfigurationBuilder(name, driverClass, type); }
/** * Creates a builder. * * @return the builder */ public static ApplicationResourceBuilder newBuilder(String name, Supplier<?> supplier) { return new ApplicationResourceBuilder(name, supplier); }
/** * Creates a new builder. * * @param name the component name * @param instance the component instance * @return the builder */ public static JavaComponentBuilder newBuilder(String name, Object instance) { return new JavaComponentBuilder(name, instance); }
/** * Sets the reference source. * * @param value the reference in the form component/reference/binding where reference and binding may be optional * @return the builder */ public WireBuilder source(String value) { checkState(); reference = parseTarget(value); return this; }
/** * Creates a builder. * * @return the builder */ public static TimerPoolResourceBuilder newBuilder(String name) { return new TimerPoolResourceBuilder(name, 2); }