com.levigo.jadice.annotation.profiles
Class AnnotationFactory

java.lang.Object
  extended by com.levigo.jadice.annotation.profiles.AnnotationFactory
Direct Known Subclasses:
AnnotationTemplate, AnnotationType

public abstract class AnnotationFactory
extends Object


Field Summary
protected  List<AnnotationInitializerFactory> initializerFactories
           
protected  String name
           
 
Constructor Summary
AnnotationFactory()
           
 
Method Summary
abstract  Annotation createNewInstance()
           
 boolean equals(Object obj)
           
 AnnotationProfile getAnnotationProfile()
          Return the "effective" profile to which this type or template belongs.
 String getArchetypeName()
           
abstract  AnnotationType getBaseType()
           
 List<NameBasedFactory<AnnotationCustomizer>> getCustomizerFactories()
          Deprecated. This method is for XML umarshalling use only
 List<AnnotationCustomizer> getCustomizers()
           
 List<AnnotationInitializerFactory> getInitializerFactories()
           
 AnnotationInitializerFactory getInitializerFactory()
          Return the initializer factory for the current toolkit set via setToolkitType(String).
 AnnotationInitializerFactory getInitializerFactory(String toolkitType)
           
 String getLabel()
           
 String getLabel(Locale locale)
           
 Labels getLabels()
           
 String getName()
           
 AnnotationProfile getOwnerProfile()
          Return the profile that "owns" this type or template.
abstract  AnnotationFactory getSuperType()
           
static String getToolkitType()
           
abstract  Factory<AnnotationWrangler,RuntimeException> getWranglerFactory()
           
 int hashCode()
           
 void setCustomizerFactories(List<NameBasedFactory<AnnotationCustomizer>> customizerFactories)
           
 void setInitializerFactories(List<AnnotationInitializerFactory> initializerFactories)
           
 void setLabels(Labels labels)
           
 void setName(String name)
           
 void setOwnerProfile(AnnotationProfile ownerProfile)
           
static void setToolkitType(String toolkitType)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected String name

initializerFactories

protected List<AnnotationInitializerFactory> initializerFactories
Constructor Detail

AnnotationFactory

public AnnotationFactory()
Method Detail

getToolkitType

public static String getToolkitType()

setToolkitType

public static void setToolkitType(String toolkitType)

setName

public void setName(String name)
Parameters:
name - the name to set

getName

public String getName()
Returns:
the name

getAnnotationProfile

public AnnotationProfile getAnnotationProfile()
Return the "effective" profile to which this type or template belongs. The effective profile is the "bottom-most" profile. If a profile inherits a type/template from a parent profile, it becomes the effective profile for it.

Returns:
the annotationProfile

setOwnerProfile

public void setOwnerProfile(AnnotationProfile ownerProfile)
Parameters:
ownerProfile - the ownerProfile to set

getOwnerProfile

public AnnotationProfile getOwnerProfile()
Return the profile that "owns" this type or template. This is the profile in which the type/template was defined. Profile inheritance does not change the owner profile for a given inherited type.

Returns:
the ownerProfile

setLabels

public void setLabels(Labels labels)

getLabels

public Labels getLabels()

getLabel

public String getLabel(Locale locale)

getLabel

public String getLabel()

getInitializerFactory

public AnnotationInitializerFactory getInitializerFactory()
Return the initializer factory for the current toolkit set via setToolkitType(String).

Returns:
the initializer factory for the current toolkit set via setToolkitType(String) .

getInitializerFactory

public AnnotationInitializerFactory getInitializerFactory(String toolkitType)
Returns:
the initializer factory

getInitializerFactories

public List<AnnotationInitializerFactory> getInitializerFactories()

setInitializerFactories

public void setInitializerFactories(List<AnnotationInitializerFactory> initializerFactories)

getSuperType

public abstract AnnotationFactory getSuperType()

getBaseType

public abstract AnnotationType getBaseType()

createNewInstance

public abstract Annotation createNewInstance()
                                      throws InstantiationException,
                                             IllegalAccessException
Throws:
InstantiationException
IllegalAccessException

getWranglerFactory

public abstract Factory<AnnotationWrangler,RuntimeException> getWranglerFactory()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getArchetypeName

public String getArchetypeName()

setCustomizerFactories

public void setCustomizerFactories(List<NameBasedFactory<AnnotationCustomizer>> customizerFactories)

getCustomizerFactories

@Deprecated
public List<NameBasedFactory<AnnotationCustomizer>> getCustomizerFactories()
Deprecated. This method is for XML umarshalling use only


getCustomizers

public List<AnnotationCustomizer> getCustomizers()


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.