View Javadoc
1   /*
2    * #%L
3    * EUGene :: Java templates
4    * %%
5    * Copyright (C) 2004 - 2012 CodeLutin, Tony Chemit
6    * %%
7    * This program is free software: you can redistribute it and/or modify
8    * it under the terms of the GNU Lesser General Public License as 
9    * published by the Free Software Foundation, either version 3 of the 
10   * License, or (at your option) any later version.
11   * 
12   * This program is distributed in the hope that it will be useful,
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15   * GNU General Lesser Public License for more details.
16   * 
17   * You should have received a copy of the GNU General Lesser Public 
18   * License along with this program.  If not, see
19   * <http://www.gnu.org/licenses/lgpl-3.0.html>.
20   * #L%
21   */
22  package org.nuiton.eugene.java;
23  
24  import org.codehaus.plexus.component.annotations.Component;
25  import org.nuiton.eugene.Template;
26  import org.nuiton.eugene.models.extension.tagvalue.provider.TagValueMetadatasProvider;
27  import org.nuiton.eugene.models.object.ObjectModelClass;
28  
29  /**
30   * JavaBeanTransformer generates simple bean with pcs support
31   * (and nothing else) according to the JavaBeans 1.1 norm.
32   *
33   * <b>This transformer is deprecated and you should use now {@link BeanTransformer} instead.</b>
34   *
35   * @author Tony Chemit - chemit@codelutin.com
36   * @since 2.0.2
37   * @deprecated since 3.0, no more usable, replaced by {@link BeanTransformer}.
38   */
39  @Component(role = Template.class, hint = "org.nuiton.eugene.java.JavaBeanTransformer")
40  public class JavaBeanTransformer extends ObjectModelTransformerToJava {
41  
42      @Override
43      public void transformFromClass(ObjectModelClass input) {
44          throw new IllegalStateException("You can't use any longer this transformer, please use now " + BeanTransformer.class.getName() + ".");
45      }
46  
47  }