@Override public <T> List<T> getExtensions(Class<T> extensionType) { if (JRQueryExecuterFactoryBundle.class.equals(extensionType)) { return (List<T>) Collections.singletonList((Object)DefaultQueryExecuterFactoryBundle.getInstance()); } else if (ScriptletFactory.class.equals(extensionType)) { return (List<T>) Collections.singletonList((Object)DefaultScriptletFactory.getInstance()); } else if (ChartThemeBundle.class.equals(extensionType)) { return (List<T>) Collections.singletonList((Object)DefaultChartTheme.BUNDLE); } else if (GenericElementHandlerBundle.class.equals(extensionType)) { return (List<T>) Collections.singletonList((Object)HANDLER_BUNDLE); } else if (MessageProviderFactory.class.equals(extensionType)) { return (List<T>) Collections.singletonList((Object) new ResourceBundleMessageProviderFactory()); } return null; }
@Override @SuppressWarnings("unchecked") public <T> List<T> getExtensions(Class<T> extensionType) { if (GenericElementHandlerBundle.class.equals(extensionType)) { return Collections.singletonList((T)TextInputElementHandlerBundle.getInstance()); } return null; }
@Override @SuppressWarnings("unchecked") public <T> List<T> getExtensions(Class<T> extensionType) { if (GenericElementHandlerBundle.class.equals(extensionType)) { return Collections.singletonList((T)HtmlElementHandlerBundle.getInstance()); } return null; }
@Override @SuppressWarnings({ "rawtypes", "unchecked" }) public List getExtensions(Class extensionType) { if (ComponentsBundle.class.equals(extensionType)) { return Collections.singletonList(bundle); } if (GenericElementHandlerBundle.class.equals(extensionType)) { return Collections.singletonList(handler); } if (CustomComponentTransform.class.equals(extensionType)) { return transforms; } return null; }
@Override @SuppressWarnings("unchecked") public <T> List<T> getExtensions(Class<T> extensionType) { if (GenericElementHandlerBundle.class.equals(extensionType)) { return (List<T>) Collections.singletonList((Object) HANDLER_BUNDLE); } return null; }
@SuppressWarnings("unchecked") @Override public <T> List<T> getExtensions(Class<T> extensionType) { if (extensionType == ComponentsBundle.class) { return (List<T>) Collections.singletonList(COMPONENTS_BUNDLE); } if (extensionType == GenericElementHandlerBundle.class) { return (List<T>) Collections.singletonList(HANDLER_BUNDLE); } return null; }