001: /**
002: * EasyBeans
003: * Copyright (C) 2007 Bull S.A.S.
004: * Contact: easybeans@ow2.org
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation; either
009: * version 2.1 of the License, or any later version.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: *
016: * You should have received a copy of the GNU Lesser General Public
017: * License along with this library; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
019: * USA
020: *
021: * --------------------------------------------------------------------------
022: * $Id: JavaxPersistenceUnit.java 1970 2007-10-16 11:49:25Z benoitf $
023: * --------------------------------------------------------------------------
024: */package org.ow2.easybeans.deployment.api;
025:
026: import javax.annotation.Resource.AuthenticationType;
027:
028: /**
029: * Manages Resource annotation.
030: * @author Florent BENOIT
031: */
032: public interface IJAnnotationResource {
033:
034: /**
035: * @return Name (resource to be looked up).
036: */
037: String getName();
038:
039: /**
040: * Sets Name (resource to be looked up).
041: * @param name the given name.
042: */
043: void setName(final String name);
044:
045: /**
046: * @return the authentication type.
047: */
048: AuthenticationType getAuthenticationType();
049:
050: /**
051: * Sets the authentication type.
052: * @param authenticationType value to set.
053: */
054: void setAuthenticationType(
055: final AuthenticationType authenticationType);
056:
057: /**
058: * @return the description.
059: */
060: String getDescription();
061:
062: /**
063: * Sets the description.
064: * @param description value to set.
065: */
066: void setDescription(final String description);
067:
068: /**
069: * @return true if it is shareable.
070: */
071: boolean isShareable();
072:
073: /**
074: * Sets the shareable attribute (false/true).
075: * @param shareable a boolean.
076: */
077: void setShareable(final boolean shareable);
078:
079: /**
080: * @return the type of resource (class).
081: */
082: String getType();
083:
084: /**
085: * Sets the class type of this object.
086: * @param type the class value (as string format).
087: */
088: void setType(final String type);
089:
090: /**
091: * @return MappedName.
092: */
093: String getMappedName();
094:
095: /**
096: * Sets mapped Name.
097: * @param mappedName the given mappedName.
098: */
099: void setMappedName(final String mappedName);
100: }
|