/** * Factory method that performs validation. * * @param factory the factory to call, not null * @return the <code>factory</code> transformer * @throws IllegalArgumentException if the factory is null */ public static Transformer getInstance(Factory factory) { if (factory == null) { throw new IllegalArgumentException("Factory must not be null"); } return new FactoryTransformer(factory); }
/** * Factory method that performs validation. * * @param factory the factory to call, not null * @return the <code>factory</code> transformer * @throws IllegalArgumentException if the factory is null */ public static Transformer getInstance(Factory factory) { if (factory == null) { throw new IllegalArgumentException("Factory must not be null"); } return new FactoryTransformer(factory); }
/** * Factory method that performs validation. * * @param factory the factory to call, not null * @return the <code>factory</code> transformer * @throws IllegalArgumentException if the factory is null */ public static Transformer getInstance(Factory factory) { if (factory == null) { throw new IllegalArgumentException("Factory must not be null"); } return new FactoryTransformer(factory); }
/** * Factory method that performs validation. * * @param factory the factory to call, not null * @return the <code>factory</code> transformer * @throws IllegalArgumentException if the factory is null */ public static Transformer getInstance(Factory factory) { if (factory == null) { throw new IllegalArgumentException("Factory must not be null"); } return new FactoryTransformer(factory); }
/** * Factory method that performs validation. * * @param factory the factory to call, not null * @return the <code>factory</code> transformer * @throws IllegalArgumentException if the factory is null */ public static Transformer getInstance(Factory factory) { if (factory == null) { throw new IllegalArgumentException("Factory must not be null"); } return new FactoryTransformer(factory); }
/** * Factory method that performs validation. * * @param factory the factory to call, not null * @return the <code>factory</code> transformer * @throws IllegalArgumentException if the factory is null */ public static Transformer getInstance(Factory factory) { if (factory == null) { throw new IllegalArgumentException("Factory must not be null"); } return new FactoryTransformer(factory); }
/** * Factory method that performs validation. * * @param factory the factory to call, not null * @return the <code>factory</code> transformer * @throws IllegalArgumentException if the factory is null */ public static Transformer getInstance(Factory factory) { if (factory == null) { throw new IllegalArgumentException("Factory must not be null"); } return new FactoryTransformer(factory); }