public static final class Contexts.Builder extends 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.Modifier and Type | Method and Description |
---|---|
BrwsrCtx |
build()
Generates context based on values previously inserted into
this builder.
|
<Tech> Contexts.Builder |
register(Class<Tech> type,
Tech impl,
int position)
Registers new technology into the context.
|
public Builder(Object[] context)
public <Tech> Contexts.Builder register(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 implementationIllegalStateException
- if the position isn't higher than 0
Copyright © 2018 NetBeans. All rights reserved.