com.bm.ejb3metadata.annotations.impl
Class JAnnotationResource

java.lang.Object
  extended by com.bm.ejb3metadata.annotations.impl.JAnnotationResource

public class JAnnotationResource
extends java.lang.Object

Acts as an implementation of @Resource annotation.

Author:
Daniel Wiese

Constructor Summary
JAnnotationResource()
          Constructor.
Build object with default values.
 
Method Summary
 Resource.AuthenticationType getAuthenticationType()
           
 java.lang.String getDescription()
           
 java.lang.String getMappedName()
           
 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 setMappedName(java.lang.String mappedName)
          Sets mapped Name.
 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
 

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).

getMappedName

public java.lang.String getMappedName()
Returns:
MappedName.

setMappedName

public void setMappedName(java.lang.String mappedName)
Sets mapped Name.

Parameters:
mappedName - the given mappedName.

toString

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


Copyright © 2008. All Rights Reserved.