org.objectweb.easybeans.deployment.annotations.impl
Class JAnnotationResource

java.lang.Object
  extended by org.objectweb.easybeans.deployment.annotations.impl.JAnnotationResource

public class JAnnotationResource
extends java.lang.Object

Acts as an implementation of @Resource annotation.

Author:
Florent Benoit

Field Summary
private  Resource.AuthenticationType authenticationType
          Authentication type.
private  java.lang.String description
          Description.
private  java.lang.String name
          Name.
private  boolean shareable
          Shareable (true/false).
private  java.lang.String type
          Type (class).
 
Constructor Summary
JAnnotationResource()
          Constructor.
Build object with default values.
 
Method Summary
 Resource.AuthenticationType getAuthenticationType()
           
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 java.lang.String getType()
           
 boolean isShareable()
           
 void setAuthenticationType(Resource.AuthenticationType authenticationType)
          Sets the authentication type.
 void setDescription(java.lang.String description)
          Sets the description.
 void setName(java.lang.String name)
          Sets Name (resource to be looked up).
 void setShareable(boolean shareable)
          Sets the shareable attribute (false/true).
 void setType(java.lang.String type)
          Sets the class type of this object.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private java.lang.String name
Name.


type

private java.lang.String type
Type (class).


authenticationType

private Resource.AuthenticationType authenticationType
Authentication type.


shareable

private boolean shareable
Shareable (true/false).


description

private java.lang.String description
Description.

Constructor Detail

JAnnotationResource

public JAnnotationResource()
Constructor.
Build object with default values.

Method Detail

getName

public java.lang.String getName()
Returns:
Name (resource to be looked up).

setName

public void setName(java.lang.String name)
Sets Name (resource to be looked up).

Parameters:
name - the given name.

getAuthenticationType

public Resource.AuthenticationType getAuthenticationType()
Returns:
the authentication type.

setAuthenticationType

public void setAuthenticationType(Resource.AuthenticationType authenticationType)
Sets the authentication type.

Parameters:
authenticationType - value to set.

getDescription

public java.lang.String getDescription()
Returns:
the description.

setDescription

public void setDescription(java.lang.String description)
Sets the description.

Parameters:
description - value to set.

isShareable

public boolean isShareable()
Returns:
true if it is shareable.

setShareable

public void setShareable(boolean shareable)
Sets the shareable attribute (false/true).

Parameters:
shareable - a boolean.

getType

public java.lang.String getType()
Returns:
the type of resource (class).

setType

public void setType(java.lang.String type)
Sets the class type of this object.

Parameters:
type - the class value (as string format).

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
string representation