- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
public class ComponentProvider implements ObjectProvider {
@SuppressWarnings("unchecked")
@Override
public <T> T provide(final Class<T> objectType, final AnnotationProvider annotationProvider,
final ObjectLocator locator) {
return objectType.getName().startsWith(
locator.getService(SymbolSource.class).valueForSymbol(FXSymbols.FX_PACKAGE)) ? locator.getService(
ComponentLocator.class).isComponentValid(objectType.getName()) ? (T) locator.getService(
ComponentInstantiatorSource.class).newInstance(objectType.getName()) : null : null;
}
}
betking1 27.11.2014 16:09 # 0
dnalchemist 12.12.2014 15:18 # 0