/*
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */
package org.xwiki.test.junit5.mockito;

import java.lang.annotation.Documented;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * Marks a field as needed to be injected with components and mock components.
 *
 * @version $Id$
 * @since 10.4RC1
 */
@Documented
@Retention(RUNTIME)
@Target({ FIELD })
@Inherited
public @interface InjectComponentManager
{
    /**
     * @return the role to use for disambiguation when the component implementations implements several roles
     */
    // Note: Java doesn't accept null as default value so we have to use a specific class and filter it in the code.
    Class<?> role() default InjectComponentManager.class;
}

@@ -1248,25 +1248,29 @@
 ed with 
-c
+the C
 omponent
 s and mo
@@ -1265,29 +1265,33 @@
 nent
-s and mock components
+ Manager used by the test
 .%0A *

Fix javadoc