Index
A C E F G I M P S T V
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- accept(Class<T>, A) - Method in interface me.gilbva.shrike.navigation.ClassNavigator
-
This method is call when ever a class if found to have the given annotation.
- accept(Field, Class, A) - Method in interface me.gilbva.shrike.navigation.FieldNavigator
-
This method is call when ever a field in a component if found to have the given annotation.
- accept(Method, Class, A) - Method in interface me.gilbva.shrike.navigation.MethodNavigator
-
This method is call when ever a method in a component if found to have the given annotation.
- appendProperty(String, String) - Method in class me.gilbva.shrike.utils.ClassListPropertyFile
-
This method appends key=value to the output file.
- Application - Class in me.gilbva.shrike.scope
-
This class represents the application scope witch is the root context of Shrike IoC.
C
- ClassListPropertyFile - Class in me.gilbva.shrike.utils
-
Base class for the annotations processors that handle components declaration files.
- ClassListPropertyFile() - Constructor for class me.gilbva.shrike.utils.ClassListPropertyFile
- ClassNavigator<A extends java.lang.annotation.Annotation,T> - Interface in me.gilbva.shrike.navigation
-
Functional interface used by
ClassRepositoryfor navigating annotated classes in the inversion of control context. - ClassRepository - Interface in me.gilbva.shrike.navigation
-
Represents the collection of classes being used by
IocContextto create and manage components. - ClassUtils - Class in me.gilbva.shrike.container
-
Utility method for class and type handling.
- ClassUtils() - Constructor for class me.gilbva.shrike.container.ClassUtils
- Component - Annotation Type in me.gilbva.shrike.annotations
-
Mark a class as a component so it can be managed by the API.
- ComponentInit - Annotation Type in me.gilbva.shrike.annotations
-
This annotation specify that the method on witch is declared is an initialize method, the container will call this method when the component is created after all or most dependency fields are injected.
- ComponentProcessor - Class in me.gilbva.shrike.processor
-
Annotations processor for the
Componentannotation. - ComponentProcessor() - Constructor for class me.gilbva.shrike.processor.ComponentProcessor
- context() - Static method in class me.gilbva.shrike.Shrike
-
This method returns the
IocContextfor the APPLICATION scopedIocContext. - createApplicationContext(Application) - Method in class me.gilbva.shrike.container.IocContextFactoryImpl
- createApplicationContext(Application) - Method in interface me.gilbva.shrike.context.IocContextFactory
-
Creates the application scoped IocContext.
- createChild(T) - Method in interface me.gilbva.shrike.context.IocContext
-
Create a child IocContext of this context.
- createChild(T) - Static method in class me.gilbva.shrike.Shrike
-
Create a child IocContext of this context.
- createMap(Class, Object[]) - Static method in class me.gilbva.shrike.container.ClassUtils
-
Given a map type this method will return the appropied instance for it.
E
- exists(Type) - Method in interface me.gilbva.shrike.context.IocContext
-
This method finds if a service is provided by a least one component in the context.
- exists(Type) - Static method in class me.gilbva.shrike.Shrike
-
This method finds if a service is provided by a least one component in the context.
- existsComponent(Class<?>) - Method in interface me.gilbva.shrike.context.IocContext
-
This method finds if the given class is a component of the context.
F
- FieldNavigator<A extends java.lang.annotation.Annotation> - Interface in me.gilbva.shrike.navigation
-
Functional interface used by
ClassRepositoryfor navigating annotated fields in the inversion of control context. - find(Class<T>) - Method in interface me.gilbva.shrike.context.IocContext
-
This method finds the highest priority component that provides the given service.
- find(Class<T>) - Static method in class me.gilbva.shrike.Shrike
-
This method finds the highest priority component that provides the given service.
- findAll(Class<T>) - Method in interface me.gilbva.shrike.context.IocContext
-
This method finds all the components that provides the given service.
- findAll(Class<T>) - Static method in class me.gilbva.shrike.Shrike
-
This method finds all the components that provides the given service.
- findGeneric(Type) - Method in interface me.gilbva.shrike.context.IocContext
-
This method finds the highest priority component that provides the given generic service.
- findGeneric(Type) - Static method in class me.gilbva.shrike.Shrike
-
This method finds the highest priority component that provides the given generic service.
- findNext(Class<T>, int) - Method in interface me.gilbva.shrike.context.IocContext
-
This method finds the component that provides the given service with less priority than the priority parameter.
- findNext(Class<T>, int) - Static method in class me.gilbva.shrike.Shrike
-
This method finds the component that provides the given service with less priority than the priority parameter.
- findNextGeneric(Type, int) - Method in interface me.gilbva.shrike.context.IocContext
-
This method finds the component that provides the given generic service with less priority than the priority parameter.
- findNextGeneric(Type, int) - Static method in class me.gilbva.shrike.Shrike
-
This method finds the component that provides the given generic service with less priority than the priority parameter.
- forEachClass(Class<A>, Class<T>, ClassNavigator<A, T>) - Method in interface me.gilbva.shrike.navigation.ClassRepository
-
Navigates through all component classes registered in this repository, that are annotated with the given annotation.
- forEachClass(Class<A>, ClassNavigator<A, Object>) - Method in interface me.gilbva.shrike.navigation.ClassRepository
-
Navigates through all component classes registered in this repository, that are annotated with the given annotation.
- forEachField(Class<A>, FieldNavigator<A>) - Method in interface me.gilbva.shrike.navigation.ClassRepository
-
Navigates through all fields of all component classes registered in this repository, that are annotated with the given annotation.
- forEachMethod(Class<A>, MethodNavigator<A>) - Method in interface me.gilbva.shrike.navigation.ClassRepository
-
Navigates through all methods of all component classes registered in this repository, that are annotated with the given annotation.
G
- getClassRepository() - Method in interface me.gilbva.shrike.context.IocContext
-
Obtains the class repository associated with this context.
- getClassRepository() - Static method in class me.gilbva.shrike.Shrike
-
Obtains the class repository associated with this context.
- getFileName() - Method in class me.gilbva.shrike.processor.ComponentProcessor
- getFileName() - Method in class me.gilbva.shrike.utils.ClassListPropertyFile
-
Gets the name for the file that will be written by this annotation processor.
- getInstance() - Static method in class me.gilbva.shrike.container.IocContextFactoryImpl
- getInstance() - Static method in class me.gilbva.shrike.scope.Application
- getParent() - Method in interface me.gilbva.shrike.context.IocContext
-
The parent of this context.
- getParent() - Static method in class me.gilbva.shrike.Shrike
-
The parent of this context.
- getScope() - Method in interface me.gilbva.shrike.context.IocContext
-
Gets the scope of the current context.
- getScopeClass() - Method in interface me.gilbva.shrike.context.IocContext
-
Gets the scope of the current context.
I
- init(ProcessingEnvironment) - Method in class me.gilbva.shrike.utils.ClassListPropertyFile
- Inject - Annotation Type in me.gilbva.shrike.annotations
-
This annotation specify that the field on witch it is declared is a component dependency, the container will find (any/all) components that provides the service and inject the instance of it in this field.
- InjectNext - Annotation Type in me.gilbva.shrike.annotations
-
This annotation behaves in the same way as the
Injectannotation except that it will look only for components that has a priority value bigger than the current component. - instantiate() - Method in annotation type me.gilbva.shrike.annotations.Component
-
If the component must be instantiate eager or lazy
- IocContext<S extends Scope> - Interface in me.gilbva.shrike.context
-
Represents a context in witch components are managed.
- IocContextFactory - Interface in me.gilbva.shrike.context
-
Factory service for the application IoC context.
- IocContextFactoryImpl - Class in me.gilbva.shrike.container
-
Factory object to create the application context.
- IocContextListener<T> - Interface in me.gilbva.shrike.context
-
A listener for the
IocContext.
M
- me.gilbva.shrike - package me.gilbva.shrike
- me.gilbva.shrike.annotations - package me.gilbva.shrike.annotations
- me.gilbva.shrike.container - package me.gilbva.shrike.container
- me.gilbva.shrike.context - package me.gilbva.shrike.context
- me.gilbva.shrike.navigation - package me.gilbva.shrike.navigation
- me.gilbva.shrike.processor - package me.gilbva.shrike.processor
- me.gilbva.shrike.scope - package me.gilbva.shrike.scope
- me.gilbva.shrike.utils - package me.gilbva.shrike.utils
- MethodNavigator<A extends java.lang.annotation.Annotation> - Interface in me.gilbva.shrike.navigation
-
Functional interface used by
ClassRepositoryfor navigating annotated methods in the inversion of control context.
P
- parameterType(Type, int) - Static method in class me.gilbva.shrike.container.ClassUtils
-
Returns the specified parameter from the ParameterizedType.
- postInitComponent(Class<Object>, Object) - Method in class me.gilbva.shrike.scope.Application
- postInitComponent(Class<T>, T) - Method in interface me.gilbva.shrike.context.IocContextListener
-
Will be called after the components dependencies injection.
- preCreateComponent(Class<Object>) - Method in class me.gilbva.shrike.scope.Application
- preCreateComponent(Class<T>) - Method in interface me.gilbva.shrike.context.IocContextListener
-
Will be called before a component is created
- preInitComponent(Class<Object>, Object) - Method in class me.gilbva.shrike.scope.Application
- preInitComponent(Class<T>, T) - Method in interface me.gilbva.shrike.context.IocContextListener
-
Will be called after the component has been instantiate and before injecting the components dependencies
- printPriorities(Class<?>, PrintWriter) - Method in interface me.gilbva.shrike.context.IocContext
-
Prints all the implementations of the services with its priorities.
- Priority - Annotation Type in me.gilbva.shrike.annotations
-
Defines the priority of the component in a way that the small values are the highest priority component.
- process(Set<? extends TypeElement>, RoundEnvironment) - Method in class me.gilbva.shrike.utils.ClassListPropertyFile
- processElement(Element) - Method in class me.gilbva.shrike.processor.ComponentProcessor
- processElement(Element) - Method in class me.gilbva.shrike.utils.ClassListPropertyFile
-
This method will be called for each component class found by this processor.
S
- scope() - Method in annotation type me.gilbva.shrike.annotations.Component
-
Defines the scope of a component.
- Scope - Interface in me.gilbva.shrike.scope
-
The base interface that all shrike ioc scope classes must implement.
- Shrike - Class in me.gilbva.shrike
-
Facade for the Shrike IoC API.
T
- toClasses(Collection) - Static method in class me.gilbva.shrike.container.ClassUtils
-
Gets a collection with all the classes of the objects from the especified collection.
V
- value() - Method in annotation type me.gilbva.shrike.annotations.Priority
-
The priority of the component.
All Classes All Packages