Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * JBoss, Home of Professional Open Source
  * Copyright 2013, Red Hat, Inc., and individual contributors
  * by the @authors tag. See the copyright.txt in the distribution for a
  * full listing of individual contributors.
  * 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
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.
package org.jboss.weld.manager.api;
Specialized version which provides more options than the original javax.enterprise.inject.spi.InjectionTargetFactory.

Jozef Hartinger
public interface WeldInjectionTargetFactory<T> extends InjectionTargetFactory<T> {
    WeldInjectionTarget<T> createInjectionTarget(Bean<T> bean);

Creates a WeldInjectionTarget implementation that does not support construction/destruction of instances but provides field/setter injection capabilities. Such implementation is often handy for integration with other frameworks in situations when an existing Java object needs to be injected. javax.enterprise.inject.spi.Producer.produce(javax.enterprise.context.spi.CreationalContext) and javax.enterprise.inject.spi.Producer.dispose(java.lang.Object) methods should not be called on the returned instance. The javax.enterprise.inject.spi.Producer.produce(javax.enterprise.context.spi.CreationalContext) method of the returned injection target throws javax.enterprise.inject.CreationException if called.

the injection target
Create a new injection target for an interceptor bound using javax.interceptor.Interceptors or a deployment descriptor. Unlike createInjectionTarget(javax.enterprise.inject.spi.Bean), the resulting InjectionTarget does not support interception as it is itself an interceptor.

the injection target
New to GrepCode? Check out our FAQ X