KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > ejb > ResourceImpl


1 /*
2   * JBoss, Home of Professional Open Source
3   * Copyright 2005, JBoss Inc., and individual contributors as indicated
4   * by the @authors tag. See the copyright.txt in the distribution for a
5   * full listing of individual contributors.
6   *
7   * This is free software; you can redistribute it and/or modify it
8   * under the terms of the GNU Lesser General Public License as
9   * published by the Free Software Foundation; either version 2.1 of
10   * the License, or (at your option) any later version.
11   *
12   * This software 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 GNU
15   * Lesser General Public License for more details.
16   *
17   * You should have received a copy of the GNU Lesser General Public
18   * License along with this software; if not, write to the Free
19   * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20   * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21   */

22 package org.jboss.ejb;
23
24
25 /**
26  * // *
27  *
28  * @author <a HREF="mailto:bill@jboss.org">William DeCoste</a>
29  * @version $Revision: 45473 $
30  */

31 public class ResourceImpl implements javax.annotation.Resource
32 {
33    private boolean shareable;
34    private AuthenticationType authenticationType;
35    private String JavaDoc name;
36    private Class JavaDoc type = Object JavaDoc.class;
37    private String JavaDoc description;
38    private String JavaDoc mappedName;
39
40    public ResourceImpl()
41    {
42    }
43
44    public String JavaDoc mappedName() { return mappedName; }
45
46
47
48    public String JavaDoc description()
49    {
50       return this.description;
51    }
52
53    public void setDescription(String JavaDoc description)
54    {
55       this.description = description;
56    }
57
58    public AuthenticationType authenticationType()
59    {
60       return authenticationType;
61    }
62
63    public void setAuthenticationType(AuthenticationType authorizationType)
64    {
65       this.authenticationType = authorizationType;
66    }
67
68    public Class JavaDoc type()
69    {
70       return type;
71    }
72
73    public void setType(Class JavaDoc type)
74    {
75       this.type = type;
76    }
77
78    public String JavaDoc name()
79    {
80       return name;
81    }
82
83    public void setName(String JavaDoc name)
84    {
85       this.name = name;
86    }
87
88    public boolean shareable()
89    {
90       return shareable;
91    }
92
93    public void setShareable(boolean shareable)
94    {
95       this.shareable = shareable;
96    }
97
98    public Class JavaDoc annotationType()
99    {
100       return javax.annotation.Resource.class;
101    }
102 }
103
Popular Tags