public <T> Collection<T> getBeans(Class<T> type) { Collection<T> collection = applicationContext.getBeansOfType(type) .values(); if (collection.size() == 0 && parent != null) { collection = parent.getBeans(type); } return collection; }
public <T> Collection<T> getBeans(Class<T> type) { Collection<T> collection = applicationContext.getBeansOfType(type) .values(); if (collection.size() == 0 && parent != null) { collection = parent.getBeans(type); } return collection; }
public <T> Collection<T> getBeans(Class<T> type) { Collection<T> collection = applicationContext.getBeansOfType(type).values(); if (collection.size() == 0 && parent != null) { collection = parent.getBeans(type); } return collection; }
@SuppressWarnings("rawtypes") protected void registerSingleMethodProcessor() throws ScriptException { Collection<SingleMethodProcessor> c = BeanContainerFactory.getBeanContainer(getClass().getClassLoader()).getBeans(SingleMethodProcessor.class); if(c!=null && !c.isEmpty()){ Iterator<SingleMethodProcessor> it = c.iterator(); while(it.hasNext()){ ClassInstanceUtil.addSingleMethodProxy(it.next()); } } }
protected void registerInProcessor() throws ScriptException { Collection<InExpressionProcessor> c = BeanContainerFactory.getBeanContainer(getClass().getClassLoader()).getBeans(InExpressionProcessor.class); if(c!=null && !c.isEmpty()){ Iterator<InExpressionProcessor> it = c.iterator(); while(it.hasNext()){ ExpressionUtil.addInProcessor(it.next()); } } }
protected void registerFunction(ScriptEngine engine) throws ScriptException{ Collection<ScriptFunction> c = BeanContainerFactory.getBeanContainer(getClass().getClassLoader()).getBeans(ScriptFunction.class); if(c!=null && !c.isEmpty()){ Iterator<ScriptFunction> it = c.iterator(); while(it.hasNext()){ engine.addScriptFunction(it.next()); } } }
protected void registerOperator() throws ScriptException { Collection<Operator> c = BeanContainerFactory.getBeanContainer(getClass().getClassLoader()).getBeans(Operator.class); if(c!=null && !c.isEmpty()){ Iterator<Operator> it = c.iterator(); while(it.hasNext()){ ExpressionUtil.addOperator(it.next()); } } }
protected void registerObjectItemProcessor() throws ScriptException { Collection<ObjectItemProcessor> c = BeanContainerFactory.getBeanContainer(getClass().getClassLoader()).getBeans(ObjectItemProcessor.class); if(c!=null && !c.isEmpty()){ Iterator<ObjectItemProcessor> it = c.iterator(); while(it.hasNext()){ ObjectItemUtil.addObjectItemProcessor(it.next()); } } }
protected void registerAnalysisModelProcessor() throws ScriptException { Collection<AnalysisModelProcessor> c = BeanContainerFactory.getBeanContainer(getClass().getClassLoader()).getBeans(AnalysisModelProcessor.class); if(c!=null && !c.isEmpty()){ Iterator<AnalysisModelProcessor> it = c.iterator(); while(it.hasNext()){ AnalysisModelUtil.addProcessor(it.next()); } } } }
protected void registerCollectionModel() throws ScriptException { Collection<ScriptCollectionModel> c = BeanContainerFactory.getBeanContainer(getClass().getClassLoader()).getBeans(ScriptCollectionModel.class); if(c!=null && !c.isEmpty()){ Iterator<ScriptCollectionModel> it = c.iterator(); while(it.hasNext()){ CollectionModelUtil.addCollectionModel(it.next()); } } }
protected void registerIteratorConverter() throws ScriptException { Collection<IteratorConverter> c = BeanContainerFactory.getBeanContainer(getClass().getClassLoader()).getBeans(IteratorConverter.class); if(c!=null && !c.isEmpty()){ Iterator<IteratorConverter> it = c.iterator(); while(it.hasNext()){ ExpressionUtil.addIteratorConverter(it.next()); } } }
protected void registerFunctionCallProcessor() throws ScriptException { Collection<FunctionCallProcessor> c = BeanContainerFactory.getBeanContainer(getClass().getClassLoader()).getBeans(FunctionCallProcessor.class); if(c!=null && !c.isEmpty()){ Iterator<FunctionCallProcessor> it = c.iterator(); while(it.hasNext()){ FunctionCallUtil.addFunctionCallProcessor(it.next()); } } }
protected void registerConstructorParameterRule() throws ScriptException { Collection<ConstructorParameterRule> c = BeanContainerFactory.getBeanContainer(getClass().getClassLoader()).getBeans(ConstructorParameterRule.class); if(c!=null && !c.isEmpty()){ Iterator<ConstructorParameterRule> it = c.iterator(); while(it.hasNext()){ JavaConstructorUtil.addConstructorParameterRule(it.next()); } } }
protected void registerBooleanConverter() throws ScriptException { Collection<BooleanConverter> c = BeanContainerFactory.getBeanContainer(getClass().getClassLoader()).getBeans(BooleanConverter.class); if(c!=null && !c.isEmpty()){ Iterator<BooleanConverter> it = c.iterator(); while(it.hasNext()){ ExpressionUtil.addBooleanConverter(it.next()); } } }
protected void registerNumberCalculator() throws ScriptException { Collection<NumberCalculator> c = BeanContainerFactory.getBeanContainer(getClass().getClassLoader()).getBeans(NumberCalculator.class); if(c!=null && !c.isEmpty()){ Iterator<NumberCalculator> it = c.iterator(); while(it.hasNext()){ ExpressionUtil.addNumberCalculator(it.next()); } } }
protected void registerAttributeProcessor() throws ScriptException { Collection<AttributeProcessor> c = BeanContainerFactory.getBeanContainer(getClass().getClassLoader()).getBeans(AttributeProcessor.class); if(c!=null && !c.isEmpty()){ Iterator<AttributeProcessor> it = c.iterator(); while(it.hasNext()){ AttributeUtil.addAttributeProcessor(it.next(),0); } } }
protected void registerInstanceOfProcessor() throws ScriptException { Collection<InstanceOfProcessor> c = BeanContainerFactory.getBeanContainer(getClass().getClassLoader()).getBeans(InstanceOfProcessor.class); if(c!=null && !c.isEmpty()){ Iterator<InstanceOfProcessor> it = c.iterator(); while(it.hasNext()){ ClassInstanceUtil.addInstanceOfProcessor(it.next()); } } }
protected void registerMethodParameterRule() throws ScriptException { Collection<MethodParameterRule> c = BeanContainerFactory.getBeanContainer(getClass().getClassLoader()).getBeans(MethodParameterRule.class); if(c!=null && !c.isEmpty()){ Iterator<MethodParameterRule> it = c.iterator(); while(it.hasNext()){ JavaMethodUtil.addMethodParameterRule(it.next()); } } }
@SuppressWarnings("rawtypes") protected void registerNewInstanceProcessor() throws ScriptException { Collection<NewInstanceProcessor> c = BeanContainerFactory.getBeanContainer(getClass().getClassLoader()).getBeans(NewInstanceProcessor.class); if(c!=null && !c.isEmpty()){ Iterator<NewInstanceProcessor> it = c.iterator(); while(it.hasNext()){ ClassInstanceUtil.addNewInstanceProcessor(it.next()); } } }
protected void registerCustomProcessor() throws ScriptException { Collection<CustomProcessor> c = BeanContainerFactory.getBeanContainer(getClass().getClassLoader()).getBeans(CustomProcessor.class); if(c!=null && !c.isEmpty()){ Iterator<CustomProcessor> it = c.iterator(); while(it.hasNext()){ CustomUtil.addCustomProcessor(it.next()); } } }