Package org.apache.wink.common

Examples of org.apache.wink.common.DynamicResource


        if (ResourceMetadataCollector.isStaticResource(cls) || ProviderMetadataCollector
            .isProvider(cls)) {
            return (ObjectFactory<T>)class2factory.get(cls);
        }
        if (ResourceMetadataCollector.isDynamicResource(cls)) {
            DynamicResource dynResource = (DynamicResource)object;
            String beanName = dynResource.getBeanName();
            return (ObjectFactory<T>)id2factory.get(beanName);
        }
        return null;
    }
View Full Code Here


    }

    public void addDynamicResource(Object bean, String beanName, SpringObjectFactory objectFactory) {
        Class<? extends Object> cls = bean.getClass();
        if (ResourceMetadataCollector.isDynamicResource(cls)) {
            DynamicResource dynResource = (DynamicResource)bean;
            dynResource.setBeanName(beanName);
            SpringObjectFactory old = id2factory.put(beanName, objectFactory);
            if (old != null) {
                if (logger.isWarnEnabled()) {
                    logger.warn(Messages
                        .getMessage("springClassReplaceNewerObjectFactory", beanName)); //$NON-NLS-1$
View Full Code Here

TOP

Related Classes of org.apache.wink.common.DynamicResource

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.