blob: 9de023617638a8dae495a4e2377c5a5be02a4683 [file] [log] [blame]
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.aries.cdi.container.internal.annotated;
import javax.enterprise.inject.spi.Annotated;
import java.lang.annotation.Annotation;
import java.util.List;
// because Discovery run should be free and not cost as much as a CDI starts we try to reduce its cost by caching meta
public interface CachingAnnotated extends Annotated {
// tested early and generally later too so cache it
Class<? extends Annotation> getBeanScope();
void setBeanScope(Class<? extends Annotation> value);
// used in all "tests" so worth a cache
List<Annotation> getCollectedAnnotations();
void setCollectedAnnotations(List<Annotation> annotations);
}