| Modifier and Type | Field and Description |
|---|---|
| private ImmutableList | elements
lazily instantiated |
| private List | |
| private ImmutableMap | exposedKeysToSources
lazily instantiated |
| private List | |
| private Injector | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public <T> T | acceptVisitor(ElementVisitor<T>
to call back on visitor)Implements com. |
| public void | |
| public void | applyTo(Binder
to apply configuration element to binder)Implements com. |
| public List | getElements()
Implements com. |
| public List | |
| public Set | getExposedKeys()
Implements com. |
| public Object | getExposedSource(Key<?>
one of the keys exposed by this module. key)Implements com. |
| public Injector | getInjector()
Implements com. |
| public Object | getSource()
Implements com. |
| public void | |
| public String |
| elements | back to summary |
|---|---|
| private ImmutableList<Element> elements lazily instantiated | |
| elementsMutable | back to summary |
|---|---|
| private List<Element> elementsMutable | |
| exposedKeysToSources | back to summary |
|---|---|
| private ImmutableMap<Key<?>, Object> exposedKeysToSources lazily instantiated | |
| exposureBuilders | back to summary |
|---|---|
| private List<ExposureBuilder<?>> exposureBuilders | |
| injector | back to summary |
|---|---|
| private Injector injector | |
| source | back to summary |
|---|---|
| private final Object source | |
| PrivateElementsImpl | back to summary |
|---|---|
| public PrivateElementsImpl(Object source) | |
| acceptVisitor | back to summary |
|---|---|
| public <T> T acceptVisitor(ElementVisitor<T> visitor) Implements com. Doc from com. Accepts an element visitor. Invokes the visitor method specific to this element's type.
| |
| addExposureBuilder | back to summary |
|---|---|
| public void addExposureBuilder(ExposureBuilder<?> exposureBuilder) | |
| applyTo | back to summary |
|---|---|
| public void applyTo(Binder binder) Implements com. Doc from com. Writes this module element to the given binder (optional operation). | |
| getElements | back to summary |
|---|---|
| public List Implements com. Doc from com. Returns the configuration information in this private environment.
| |
| getElementsMutable | back to summary |
|---|---|
| public List | |
| getExposedKeys | back to summary |
|---|---|
| public Set Implements com. Doc from com. Returns the unique exposed keys for these private elements.
| |
| getExposedSource | back to summary |
|---|---|
| public Object getExposedSource(Key<?> key) Implements com. Doc from com. Returns an arbitrary object containing information about the "place" where this key was exposed. Used by Guice in the production of descriptive error messages. Tools might specially handle types they know about; | |
| getInjector | back to summary |
|---|---|
| public Injector getInjector() Implements com. Doc from com. Returns the child injector that hosts these private elements, or null if the elements haven't been used to create an injector.
| |
| getSource | back to summary |
|---|---|
| public Object getSource() Implements com. Doc from com. Returns an arbitrary object containing information about the "place" where this element was configured. Used by Guice in the production of descriptive error messages. Tools might specially handle types they know about;
| |
| initInjector | back to summary |
|---|---|
| public void initInjector(Injector injector) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |