Package org.jboss.weld.bean

Examples of org.jboss.weld.bean.StringBeanIdentifier


    @Override
    public BeanIdentifier deprefix(String id) {
        String deprefixed = id.substring(getPrefix().length() + getDelimiter().length());
        if (deprefixed.startsWith(FALLBACK_FLAG)) {
            return new StringBeanIdentifier(deprefixed.substring(FALLBACK_FLAG.length()));
        }
        try {
            return index.getIdentifier(Integer.parseInt(deprefixed));
        } catch (NumberFormatException e) {
            throw new IllegalStateException("Unable to deprefix id:" + id, e);
View Full Code Here


    public boolean accept(String id) {
        return id.startsWith(getPrefix() + delimiter);
    }

    public BeanIdentifier deprefix(String id) {
        return new StringBeanIdentifier(id.substring(getPrefix().length() + delimiter.length()));
    }
View Full Code Here

*
*/
public class DecoratedBeanMetadataBean extends InterceptedBeanMetadataBean {

    public DecoratedBeanMetadataBean(BeanManagerImpl beanManager) {
        super(new StringBeanIdentifier(BeanIdentifiers.forBuiltInBean(beanManager, Bean.class, Decorated.class.getSimpleName())), beanManager);
    }
View Full Code Here

public abstract class AbstractDecorableBuiltInBean<T> extends AbstractBuiltInBean<T> implements DecorableBean<T> {

    private final CurrentInjectionPoint cip;

    protected AbstractDecorableBuiltInBean(BeanManagerImpl beanManager, Class<T> type) {
        super(new StringBeanIdentifier(BeanIdentifiers.forBuiltInBean(beanManager, type, null)), beanManager, type);
        this.cip = beanManager.getServices().get(CurrentInjectionPoint.class);
    }
View Full Code Here

*
*/
public class InterceptorMetadataBean extends AbstractBuiltInMetadataBean<Interceptor<?>> {

    public InterceptorMetadataBean(BeanManagerImpl beanManager) {
        super(new StringBeanIdentifier(BeanIdentifiers.forBuiltInBean(beanManager, Interceptor.class, null)), Reflections.<Class<Interceptor<?>>> cast(Interceptor.class), beanManager);
    }
View Full Code Here

*
*/
public class DecoratorMetadataBean extends AbstractBuiltInMetadataBean<Decorator<?>> {

    public DecoratorMetadataBean(BeanManagerImpl beanManager) {
        super(new StringBeanIdentifier(BeanIdentifiers.forBuiltInBean(beanManager, Decorator.class, null)), Reflections.<Class<Decorator<?>>>cast(Decorator.class), beanManager);
    }
View Full Code Here

    private final Metadata<Extension> instance;
    private final boolean passivationCapable;
    private final boolean proxiable;

    public ExtensionBean(BeanManagerImpl manager, EnhancedAnnotatedType<Extension> clazz, Metadata<Extension> instance) {
        super(new StringBeanIdentifier(BeanIdentifiers.forExtension(clazz)), manager, clazz.getJavaClass());
        this.annotatedType = clazz.slim();
        this.instance = instance;
        this.passivationCapable = clazz.isSerializable();
        this.proxiable = Proxies.isTypeProxyable(clazz.getBaseType(), manager.getServices());
        checkPublicFields(clazz);
View Full Code Here

TOP

Related Classes of org.jboss.weld.bean.StringBeanIdentifier

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.