pt.digitalis.utils.ioc.guice
Class ID

java.lang.Object
  extended by pt.digitalis.utils.ioc.guice.ID
All Implemented Interfaces:
com.google.inject.name.Named, Annotation

public class ID
extends Object
implements com.google.inject.name.Named

An ID annotation to identify several implementation contributions of IoC services

Author:
Pedro Viegas pviegas@digitalis.pt, Rodrigo Gonçalves rgoncalves@digitalis.pt

Constructor Summary
ID(String value)
          Constructor.
 
Method Summary
 Class<? extends Annotation> annotationType()
           
 boolean equals(Object o)
           
 int hashCode()
           
 String toString()
           
 String value()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ID

public ID(String value)
Constructor.

Parameters:
value - the ID
Method Detail

value

public String value()
See Also:
Named.value()

hashCode

public int hashCode()
Specified by:
hashCode in interface Annotation
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object o)
Specified by:
equals in interface Annotation
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

toString

public String toString()
Specified by:
toString in interface Annotation
Overrides:
toString in class Object
See Also:
Object.toString()

annotationType

public Class<? extends Annotation> annotationType()
Specified by:
annotationType in interface Annotation
See Also:
Annotation.annotationType()


Copyright © 2012 Digitalis Informática Lda. All Rights Reserved.