/*********************************************************************************************************************** * * @author Fabrizio Giudici * @version $Id$ * **********************************************************************************************************************/ public abstract class ToolBarModelSupport implements ToolBarModel { @Delegate private final AsSupport asSupport = new AsSupport(this); }
/*********************************************************************************************************************** * * @author Fabrizio Giudici * @version $Id$ * **********************************************************************************************************************/ public class JavaFxHourlyReportPresentation implements HourlyReportPresentation { private final NodeAndDelegate nad = createNodeAndDelegate(JavaFxHourlyReportPresentation.class); @Delegate private final HourlyReportPresentation delegate = nad.getDelegate(); }
/*********************************************************************************************************************** * * @author Fabrizio Giudici * @version $Id$ * **********************************************************************************************************************/ public class JavaFxIBizImporterPresentation implements IBizImporterPresentation { private final NodeAndDelegate nad = createNodeAndDelegate(JavaFxIBizImporterPresentation.class); @Delegate private final IBizImporterPresentation delegate = nad.getDelegate(); }
/*********************************************************************************************************************** * * @author Fabrizio Giudici * @version $Id$ * **********************************************************************************************************************/ public class NetBeansProfileEvaluationMainPresentation implements ProfileEvaluationMainPresentation { @Delegate(types=ProfileEvaluationMainPresentation.class) protected final ProfileEvaluationMainPresentation panel; protected final ProfileEvaluationMainTopComponent topComponent; public NetBeansProfileEvaluationMainPresentation() { assert EventQueue.isDispatchThread(); topComponent = (ProfileEvaluationMainTopComponent)WindowManager.getDefault().findTopComponent("ProfileEvaluationMainTopComponent"); panel = topComponent.getContent(); } }
/*********************************************************************************************************************** * * @author Fabrizio Giudici * @version $Id$ * **********************************************************************************************************************/ public class JavaFxCustomerExplorerPresentation implements CustomerExplorerPresentation { @Getter private final NodeAndDelegate nad = createNodeAndDelegate(JavaFxCustomerExplorerPresentation.class); @Delegate private final CustomerExplorerPresentation delegate = nad.getDelegate(); }
/*********************************************************************************************************************** * * @author Fabrizio Giudici * @version $Id$ * **********************************************************************************************************************/ public class JavaFxProjectExplorerPresentation implements ProjectExplorerPresentation { @Getter private final NodeAndDelegate nad = createNodeAndDelegate(JavaFxProjectExplorerPresentation.class); @Delegate private final ProjectExplorerPresentation delegate = nad.getDelegate(); }
/*********************************************************************************************************************** * * @author Fabrizio Giudici * @version $Id$ * **********************************************************************************************************************/ public class JavaFxJobEventExplorerPresentation implements JobEventExplorerPresentation { @Getter private final NodeAndDelegate nad = createNodeAndDelegate(JavaFxJobEventExplorerPresentation.class); @Delegate private final JobEventExplorerPresentation delegate = nad.getDelegate(); }
/*********************************************************************************************************************** * * @author Fabrizio Giudici * @version $Id$ * **********************************************************************************************************************/ @NoArgsConstructor public class ListOfPersons implements List<Person> { @Delegate private final List<Person> persons = new ArrayList<Person>(); public ListOfPersons (final @Nonnull List<Person> persons) { this.persons.addAll(persons); } }
/*********************************************************************************************************************** * * FIXME: this could probably be merged to the superclass. * * @author Fabrizio Giudici * @version $Id: DecoratorResourceFile.java,v f214f4c8488f 2014/01/03 18:03:50 fabrizio $ * **********************************************************************************************************************/ @ToString(of = "delegate") class DecoratorResourceFile extends DecoratedResourceFileSupport { @Delegate(types = ResourceFile.class, excludes = FileDelegateExclusions.class) @Nonnull private final ResourceFile delegate; public DecoratorResourceFile (final @Nonnull LayeredResourceFileSystem fileSystem, final @Nonnull ResourceFile delegate) { super(fileSystem, delegate); this.delegate = delegate; } }
/*********************************************************************************************************************** * * A {@code DefaultMedia} item is a document that is served as-is, without any processing. It's typically an image or such. * * @author Fabrizio Giudici * @version $Id$ * **********************************************************************************************************************/ @Slf4j @ToString /* package */ class DefaultMedia implements Media { @Nonnull @Getter @Delegate(types=Resource.class) private final Resource resource; /******************************************************************************************************************* * * ******************************************************************************************************************/ public DefaultMedia (final @Nonnull FileObject file) { resource = new DefaultResource(file); } }
public class SimpleDciEntity implements As @Delegate private final AsSupport asDelegate;
/** * @deprecated use {@link com.github.fommil.netlib.BLAS} */ @Deprecated @NoArgsConstructor(access = AccessLevel.PRIVATE) @Log public class BLAS extends com.github.fommil.netlib.BLAS { private static final BLAS INSTANCE = new BLAS(); /** * @return * @deprecated use {@link com.github.fommil.netlib.BLAS#getInstance()} */ @Deprecated public static BLAS getInstance() { log.warning("this API is deprecated and will be removed. Instead, use com.github.fommil.netlib.BLAS"); return INSTANCE; } @Delegate private final com.github.fommil.netlib.BLAS DELEGATE = com.github.fommil.netlib.BLAS.getInstance(); }
/** * @deprecated use {@link com.github.fommil.netlib.LAPACK} */ @Deprecated @NoArgsConstructor(access = AccessLevel.PRIVATE) @Log public class LAPACK extends com.github.fommil.netlib.LAPACK { private static final LAPACK INSTANCE = new LAPACK(); /** * @return * @deprecated use {@link com.github.fommil.netlib.LAPACK#getInstance()} */ @Deprecated public static LAPACK getInstance() { log.warning("this API is deprecated and will be removed. Instead, use com.github.fommil.netlib.LAPACK"); return INSTANCE; } @Delegate private final com.github.fommil.netlib.LAPACK DELEGATE = com.github.fommil.netlib.LAPACK.getInstance(); }
/** * @deprecated use {@link com.github.fommil.netlib.ARPACK} */ @Deprecated @NoArgsConstructor(access = AccessLevel.PRIVATE) @Log public class ARPACK extends com.github.fommil.netlib.ARPACK { private static final ARPACK INSTANCE = new ARPACK(); /** * @return * @deprecated use {@link com.github.fommil.netlib.BLAS#getInstance()} */ @Deprecated public static ARPACK getInstance() { log.warning("this API is deprecated and will be removed. Instead, use com.github.fommil.netlib.ARPACK"); return INSTANCE; } @Delegate private final com.github.fommil.netlib.ARPACK DELEGATE = com.github.fommil.netlib.ARPACK.getInstance(); }
class NodeLinkMacroExpanderFixture extends NodeLinkMacroFilter { @Delegate(types = MacroFilterTestHelper.class) @Getter private final MacroFilterTestHelper helper = new MacroFilterTestHelper(); }
class NodeLinkWithContentMacroFilterFixture extends NodeLinkWithContentMacroFilter { @Delegate(types = MacroFilterTestHelper.class) @Getter private final MacroFilterTestHelper helper = new MacroFilterTestHelper(); }
/******************************************************************************************************************* * * Mockito can't spy() synthetic proxies and unfortunately our Presentation is one. So we wrap it with a regular * class. * ******************************************************************************************************************/ @RequiredArgsConstructor static class Wrapper implements UniformityCheckMeasurementPresentation { @Nonnull @Delegate(types=UniformityCheckMeasurementPresentation.class) private final UniformityCheckMeasurementPresentation delegate; }
/******************************************************************************************************************* * * Mockito can't spy() synthetic proxies and unfortunately our Presentation is one. So we wrap it with a regular * class. * ******************************************************************************************************************/ @RequiredArgsConstructor static class Wrapper implements UniformityCheckMeasurementPresentation { @Nonnull @Delegate(types=UniformityCheckMeasurementPresentation.class) private final UniformityCheckMeasurementPresentation delegate; }
/** * Created on 7/26/2014. */ @AmfType(amf3Type = Amf3Type.OBJECT) @Serialization(name = "flex.messaging.io.ArrayCollection", externalizable = true) public class ArrayCollection<E> extends ArrayList<E> implements Externalizable { @Delegate private ArrayList<E> source = new ArrayList<>(); @Override public void writeExternal(ObjectOutput out) throws IOException { out.writeObject(source.toArray()); } @Override @SneakyThrows(value = {InstantiationException.class, IllegalAccessException.class}) public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { source.addAll((List) TypeConverter.typecast(List.class, in.readObject(), false)); } }
@RequiredArgsConstructor static class TestExecutorService implements ExecutorService { public final List<AssertionError> assertionErrors = new ArrayList<>(); static interface Exclusions { public Future<?> submit (Runnable runnable); } @Delegate(excludes = Exclusions.class) private final ExecutorService delegate; @Override @Nonnull public Future<?> submit (final Runnable task) { return delegate.submit(new Runnable() { @Override public void run() { try { task.run(); } catch (AssertionError e) { assertionErrors.add(e); } } } ); } }