/** * Is translated. * * @return the boolean */ @Override public boolean isTranslatable() { if (isDeclaredTranslatable()) { return true; } if (getAncestorDescriptors() != null) { for (IComponentDescriptor<?> ancestorDescriptor : getAncestorDescriptors()) { if (ancestorDescriptor.isTranslatable()) { return true; } } } return false; }
/** * {@inheritDoc} */ @Override public IComponentService getServiceDelegate(Method targetMethod) { registerDelegateServicesIfNecessary(); IComponentService service = null; if (serviceDelegates != null) { service = serviceDelegates.get(targetMethod.getName()); } List<IComponentDescriptor<?>> ancestorDescs = getAncestorDescriptors(); if (service == null && ancestorDescs != null) { for (Iterator<IComponentDescriptor<?>> ite = ancestorDescs.iterator(); service == null && ite.hasNext(); ) { IComponentDescriptor<?> ancestorDescriptor = ite.next(); service = ancestorDescriptor.getServiceDelegate(targetMethod); } } return service; }
/** * The properties returned include the uncloned properties of the ancestors. * <p/> * {@inheritDoc} */ @Override public Collection<String> getUnclonedProperties() { Set<String> properties = new THashSet<>(1); if (unclonedProperties != null) { properties.addAll(unclonedProperties); } List<IComponentDescriptor<?>> ancestorDescs = getAncestorDescriptors(); if (ancestorDescs != null) { for (IComponentDescriptor<?> ancestorDescriptor : ancestorDescs) { properties.addAll(ancestorDescriptor.getUnclonedProperties()); } } return properties; }
/** * Gets the lifecycleInterceptors. * * @return the lifecycleInterceptors. */ @Override public List<ILifecycleInterceptor<?>> getLifecycleInterceptors() { List<ILifecycleInterceptor<?>> allInterceptors = new ArrayList<>(); List<IComponentDescriptor<?>> ancestorDescs = getAncestorDescriptors(); if (ancestorDescs != null) { for (IComponentDescriptor<?> ancestorDescriptor : ancestorDescs) { allInterceptors.addAll(ancestorDescriptor.getLifecycleInterceptors()); } } registerLifecycleInterceptorsIfNecessary(); if (lifecycleInterceptors != null) { allInterceptors.addAll(lifecycleInterceptors); } return allInterceptors; }
/** * Gets the readabilityGates. * * @return the readabilityGates. */ @Override public Collection<IGate> getReadabilityGates() { Set<IGate> gates = new THashSet<>(1); if (readabilityGates != null) { gates.addAll(readabilityGates); } List<IComponentDescriptor<?>> ancestorDescs = getAncestorDescriptors(); if (ancestorDescs != null) { for (IComponentDescriptor<?> ancestorDescriptor : ancestorDescs) { gates.addAll(ancestorDescriptor.getReadabilityGates()); } } return gates; }
/** * Gets the writabilityGates. * * @return the writabilityGates. */ @Override public Collection<IGate> getWritabilityGates() { Set<IGate> gates = new THashSet<>(1); if (writabilityGates != null) { gates.addAll(writabilityGates); } List<IComponentDescriptor<?>> ancestorDescs = getAncestorDescriptors(); if (ancestorDescs != null) { for (IComponentDescriptor<?> ancestorDescriptor : ancestorDescs) { gates.addAll(ancestorDescriptor.getWritabilityGates()); } } return gates; }
/** * {@inheritDoc} */ @Override public Map<String, ESort> getOrderingProperties() { Map<String, ESort> properties = new LinkedHashMap<>(); if (orderingProperties != null) { properties.putAll(orderingProperties); } List<IComponentDescriptor<?>> ancestorDescs = getAncestorDescriptors(); if (ancestorDescs != null) { for (IComponentDescriptor<?> ancestorDescriptor : ancestorDescs) { if (ancestorDescriptor.getOrderingProperties() != null) { properties.putAll(ancestorDescriptor.getOrderingProperties()); } } } if (properties.isEmpty()) { return null; } return reworkOrderingProperties(properties); }
List<IComponentDescriptor<?>> ancestorDescs = getAncestorDescriptors(); if (ancestorDescs != null) { for (IComponentDescriptor<?> ancestorDescriptor : ancestorDescs) {
if (renderedProperties == null) { Set<String> renderedPropertiesSet = new TLinkedHashSet<>(1); List<IComponentDescriptor<?>> ancestorDescs = getAncestorDescriptors(); if (ancestorDescs != null) { for (IComponentDescriptor<?> ancestorDescriptor : ancestorDescs) {
/** * {@inheritDoc} */ @Override public List<String> getQueryableProperties() { if (queryableProperties == null) { synchronized (queryablePropertiesLock) { if (queryableProperties == null) { Set<String> queryablePropertiesSet = new TLinkedHashSet<>(1); List<IComponentDescriptor<?>> ancestorDescs = getAncestorDescriptors(); if (ancestorDescs != null) { for (IComponentDescriptor<?> ancestorDescriptor : ancestorDescs) { queryablePropertiesSet.addAll(ancestorDescriptor.getQueryableProperties()); } } for (String renderedProperty : getRenderedProperties()) { IPropertyDescriptor declaredPropertyDescriptor = getDeclaredPropertyDescriptor(renderedProperty); if (declaredPropertyDescriptor != null && declaredPropertyDescriptor.isQueryable()) { queryablePropertiesSet.add(renderedProperty); } } queryableProperties = new ArrayList<>(queryablePropertiesSet); } } } return explodeComponentReferences(this, queryableProperties); }
((AbstractComponentDescriptor<E>) tempQueryDescriptor).isQueryDescriptor = true; List<IComponentDescriptor<?>> ancestorDescs = getAncestorDescriptors(); if (ancestorDescs != null) { List<IComponentDescriptor<?>> queryAncestorDescriptors = new ArrayList<>();
List<IComponentDescriptor<?>> ancestorDescs = getAncestorDescriptors();