- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 101 for bean (0.14 sec)
-
maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurationRequest.java
/** * A request to configure a bean from some configuration in the POM or similar. * */ public interface BeanConfigurationRequest { /** * Gets the bean to configure. Eventually, a valid request must have a bean set. * * @return The bean to configure, or {@code null} if none. */ Object getBean(); /**
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Wed Sep 06 08:39:32 GMT 2023 - 4.9K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/session/scope/SessionScopeProxyTest.java
MySingletonBean bean = container.lookup(MySingletonBean.class); assertNotNull(bean); assertNotNull(bean.anotherBean); assertSame(bean.anotherBean.getClass(), AnotherBean.class); assertNotNull(bean.myBean); assertNotSame(bean.myBean.getClass(), MySessionScopedBean.class); assertThrows(OutOfScopeException.class, () -> bean.myBean.getSession());
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Tue Apr 23 12:52:20 GMT 2024 - 4.2K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/configuration/DefaultBeanConfiguratorPathTest.java
SomeBean bean = new SomeBean(); Xpp3Dom config = toConfig("<file>test</file>"); DefaultBeanConfigurationRequest request = new DefaultBeanConfigurationRequest(); request.setBean(bean).setConfiguration(config); configurator.configureBean(request); assertEquals(Paths.get("test"), bean.file); } @Test
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Mon Mar 25 10:50:01 GMT 2024 - 3.8K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurator.java
/** * Unmarshals some textual configuration from the POM or similar into the properties of a bean. This component works * similar to the way Maven configures plugins from the POM, i.e. some configuration like {@code <param>value</param>} * is mapped to an equally named property of the bean and converted. The properties of the bean are supposed to either * have a public setter or be backed by an equally named field (of any visibility). *
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Wed Sep 06 08:39:32 GMT 2023 - 1.7K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurationValuePreprocessor.java
package org.apache.maven.configuration; /** * Preprocesses a value from a bean configuration before the bean configurator unmarshals it into a bean property. A * common use case for such preprocessing is the evaluation of variables within the configuration value. * */ public interface BeanConfigurationValuePreprocessor { /** * Preprocesses the specified bean configuration value. The optional type provided to this method is a hint (not a
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Wed Sep 06 08:39:32 GMT 2023 - 1.9K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/plugin/annotations/Mojo.java
* @return need to be online */ boolean onlineRequired() default false; /** * TODO: v4: add a SPI for the configurator * configurator bean name. * @return the configurator bean name */ @Nonnull String configurator() default "";
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Fri Apr 12 10:50:18 GMT 2024 - 2.5K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/plugin/annotations/Parameter.java
@Target({ElementType.FIELD, ElementType.METHOD}) @Inherited public @interface Parameter { /** * name of the bean property used to get/set the field: by default, field name is used. * @return the name of the bean property */ @Nonnull String name() default ""; /** * alias supported to get parameter value. * @return the alias */ @Nonnull
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Mon Feb 05 09:45:47 GMT 2024 - 3.8K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurationException.java
* KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.maven.configuration; /** * Thrown when a bean couldn't be configured. * */ public class BeanConfigurationException extends Exception { public BeanConfigurationException(String message) { super(message); }
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Wed Sep 06 08:39:32 GMT 2023 - 1.1K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/configuration/internal/DefaultBeanConfigurator.java
public void configureBean(BeanConfigurationRequest request) throws BeanConfigurationException { Objects.requireNonNull(request, "request cannot be null"); Objects.requireNonNull(request.getBean(), "request.bean cannot be null"); Object configuration = request.getConfiguration(); if (configuration == null) { return; } PlexusConfiguration plexusConfig;
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Wed Sep 06 08:39:32 GMT 2023 - 8.2K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/di/MojoExecutionScoped.java
import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.ElementType.TYPE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * Indicates that the annotated bean has a lifespan limited to a given mojo execution, * which means each mojo execution will result in a different instance being injected. * * TODO: this is currently not implemented * * @since 4.0.0 */ @Scope
Java - Registered: Sun Apr 21 03:35:09 GMT 2024 - Last Modified: Mon Feb 05 09:45:47 GMT 2024 - 1.4K bytes - Viewed (0)