@Internal
    @Override
    public final void configure(Environment environment) {
        if (environment != null) {
            this.environment = environment;
            if (constructor instanceof EnvironmentConfigurable) {
                ((EnvironmentConfigurable) constructor).configure(environment);
            }

            for (MethodInjectionPoint methodInjectionPoint : methodInjectionPoints) {
                if (methodInjectionPoint instanceof EnvironmentConfigurable) {
                    ((EnvironmentConfigurable) methodInjectionPoint).configure(environment);
                }
            }

            for (ExecutableMethod<T, ?> executableMethod : executableMethodMap.values()) {
                if (executableMethod instanceof EnvironmentConfigurable) {
                    ((EnvironmentConfigurable) executableMethod).configure(environment);
                }
            }
        }
    }
@ Internal @ Override public final void configure ( Environment environment ) { if ( environment != null ) { this . environment = environment ; if ( constructor instanceof EnvironmentConfigurable ) { ( ( EnvironmentConfigurable ) constructor ) . configure ( environment ) ; } for ( MethodInjectionPoint methodInjectionPoint : methodInjectionPoints ) { if ( methodInjectionPoint instanceof EnvironmentConfigurable ) { ( ( EnvironmentConfigurable ) methodInjectionPoint ) . configure ( environment ) ; } } for ( ExecutableMethod < T , ? > executableMethod : executableMethodMap . values ( ) ) { if ( executableMethod instanceof EnvironmentConfigurable ) { ( ( EnvironmentConfigurable ) executableMethod ) . configure ( environment ) ; } } } }
Configures the bean for the given {@link BeanContext}. If the context features an
{@link io.micronaut.context.env.Environment} this method configures the annotation metadata such that
environment aware values are returned.

@param environment The environment