public Adapter adaptNew(Notifier target, Object type) { return adapt(target, type, true); }
public Adapter adapt(Notifier target, Object type) { return adapt(target, type, false); }
protected Adapter adapt(Notifier target, Object type, Collection<Object> failedPackages, Class<?> javaClass) { return adapt(target, type, failedPackages, javaClass, false); }
public Object adapt(Object target, Object type) { Object adapter = target; if (target instanceof Notifier) { adapter = adapt((Notifier)target, type); } if (!(type instanceof Class<?>) || ((Class<?>)type).isInstance(adapter)) { return adapter; } return null; }
factory.adapt(propSymbol, IContentProposalProvider.class);
factory.adapt(symbol, IContentProposalProvider.class);