Package org.grails.core
Class AbstractInjectableGrailsClass
- java.lang.Object
-
- org.grails.core.AbstractGrailsClass
-
- org.grails.core.AbstractInjectableGrailsClass
-
- All Implemented Interfaces:
GrailsClass,InjectableGrailsClass,GrailsApplicationAware,org.springframework.beans.factory.Aware
- Direct Known Subclasses:
DefaultGrailsControllerClass,DefaultGrailsServiceClass
public abstract class AbstractInjectableGrailsClass extends AbstractGrailsClass implements InjectableGrailsClass
Configures Grails classes to be autowirable by name, always.- Since:
- 0.1
-
-
Field Summary
-
Fields inherited from class org.grails.core.AbstractGrailsClass
grailsApplication
-
-
Constructor Summary
Constructors Constructor Description AbstractInjectableGrailsClass(java.lang.Class<?> clazz, java.lang.String trailingName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbyName()If autowiring by name is enabled.booleanbyType()If autowiring by type is enabled.booleangetAvailable()If class should be configured for dependency injection.-
Methods inherited from class org.grails.core.AbstractGrailsClass
getApplication, getClazz, getFullName, getLogicalPropertyName, getMetaClass, getMetaProperties, getName, getNaturalName, getPackageName, getPluginName, getPropertyDescriptors, getPropertyName, getPropertyOrStaticPropertyOrFieldValue, getPropertyType, getPropertyValue, getPropertyValue, getPropertyValueObject, getReferenceInstance, getShortName, getStaticPropertyValue, hasMetaMethod, hasMetaMethod, hasMetaProperty, hasProperty, isAbstract, isActionMethod, isReadableProperty, newInstance, setGrailsApplication, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface grails.core.support.GrailsApplicationAware
setGrailsApplication
-
Methods inherited from interface grails.core.GrailsClass
getApplication, getClazz, getFullName, getLogicalPropertyName, getMetaClass, getName, getNaturalName, getPackageName, getPluginName, getPropertyName, getPropertyValue, getPropertyValue, getReferenceInstance, getShortName, hasProperty, isAbstract, newInstance
-
-
-
-
Method Detail
-
byName
public boolean byName()
Description copied from interface:InjectableGrailsClassIf autowiring by name is enabled.- Specified by:
byNamein interfaceInjectableGrailsClass- Returns:
- autowiring by name
-
byType
public boolean byType()
Description copied from interface:InjectableGrailsClassIf autowiring by type is enabled.- Specified by:
byTypein interfaceInjectableGrailsClass- Returns:
- autowiring by type
-
getAvailable
public boolean getAvailable()
Description copied from interface:InjectableGrailsClassIf class should be configured for dependency injection.- Specified by:
getAvailablein interfaceInjectableGrailsClass- Returns:
- available for dependency injection
-
-