public static final class Contexts.Builder
extends java.lang.Object
BrwsrCtx
. Providers of different
technologies should be of particular interest in this class. End users
designing their application with existing technologies should rather
point their attention to BrwsrCtx
and co.Constructor and Description |
---|
Builder(java.lang.Object[] context) |
Modifier and Type | Method and Description |
---|---|
BrwsrCtx |
build()
Generates context based on values previously inserted into
this builder.
|
<Tech> Contexts.Builder |
register(java.lang.Class<Tech> type,
Tech impl,
int position)
Registers new technology into the context.
|
public <Tech> Contexts.Builder register(java.lang.Class<Tech> type, Tech impl, int position)
Tech
- type of technology to registertype
- the real class of the technology typeimpl
- an instance of the technology classposition
- the lower position (but higher than zero), the more important implementation
which will be consulted sooner when seeking for a Contexts.find(net.java.html.BrwsrCtx, java.lang.Class)
an implementationjava.lang.IllegalStateException
- if the position isn't higher than 0
Copyright © 2021 The Apache Software Foundation. All rights reserved.