|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.common.inject.internal.PrivateElementsImpl
public final class PrivateElementsImpl
Constructor Summary | |
---|---|
PrivateElementsImpl(Object source)
|
Method Summary | ||
---|---|---|
|
acceptVisitor(ElementVisitor<T> visitor)
Accepts an element visitor. |
|
void |
addExposureBuilder(ExposureBuilder<?> exposureBuilder)
|
|
void |
applyTo(Binder binder)
Writes this module element to the given binder (optional operation). |
|
List<Element> |
getElements()
Returns the configuration information in this private environment. |
|
List<Element> |
getElementsMutable()
|
|
Set<Key<?>> |
getExposedKeys()
Returns the unique exposed keys for these private elements. |
|
Object |
getExposedSource(Key<?> key)
Returns an arbitrary object containing information about the "place" where this key was exposed. |
|
Injector |
getInjector()
Returns the child injector that hosts these private elements, or null if the elements haven't been used to create an injector. |
|
Object |
getSource()
Returns an arbitrary object containing information about the "place" where this element was configured. |
|
void |
initInjector(Injector injector)
|
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PrivateElementsImpl(Object source)
Method Detail |
---|
public Object getSource()
Element
Tools might specially handle types they know about; StackTraceElement
is a good
example. Tools should simply call toString()
on the source object if the type is
unfamiliar.
getSource
in interface Element
public List<Element> getElements()
PrivateElements
getElements
in interface PrivateElements
public Injector getInjector()
PrivateElements
getInjector
in interface PrivateElements
public void initInjector(Injector injector)
public Set<Key<?>> getExposedKeys()
PrivateElements
getExposedKeys
in interface PrivateElements
public <T> T acceptVisitor(ElementVisitor<T> visitor)
Element
acceptVisitor
in interface Element
visitor
- to call back onpublic List<Element> getElementsMutable()
public void addExposureBuilder(ExposureBuilder<?> exposureBuilder)
public void applyTo(Binder binder)
Element
applyTo
in interface Element
binder
- to apply configuration element topublic Object getExposedSource(Key<?> key)
PrivateElements
Tools might specially handle types they know about; StackTraceElement
is a good
example. Tools should simply call toString()
on the source object if the type is
unfamiliar.
getExposedSource
in interface PrivateElements
key
- one of the keys exposed by this module.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |