com.google.inject.spi.PrivateElements Java Examples

The following examples show how to use com.google.inject.spi.PrivateElements. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DependencyCollector.java    From ProjectAres with GNU Affero General Public License v3.0 4 votes vote down vote up
@Override
public Object visit(PrivateElements privateElements) {
    processElements(privateElements.getElements());
    return super.visit(privateElements);
}
 
Example #2
Source File: ElementExposer.java    From ProjectAres with GNU Affero General Public License v3.0 4 votes vote down vote up
@Override
public Void visit(PrivateElements privateElements) {
    privateElements.getExposedKeys().forEach(binder::expose);
    return super.visit(privateElements);
}
 
Example #3
Source File: PrivateModuleException.java    From dropwizard-guicey with MIT License 4 votes vote down vote up
public PrivateModuleException(final PrivateElements elements) {
    this.elements = elements;
}
 
Example #4
Source File: PrivateModuleException.java    From dropwizard-guicey with MIT License 4 votes vote down vote up
public PrivateElements getElements() {
    return elements;
}
 
Example #5
Source File: SecurityModule.java    From seed with Mozilla Public License 2.0 4 votes vote down vote up
private Module removeSecurityManager(PrivateModule module) {
    return new ModuleWithoutSecurityManager((PrivateElements) Elements.getElements(module).iterator().next());
}
 
Example #6
Source File: SecurityModule.java    From seed with Mozilla Public License 2.0 4 votes vote down vote up
private ModuleWithoutSecurityManager(PrivateElements privateElements) {
    this.privateElements = privateElements;
}