ro.isdc.wro.model.group.processor
Class Injector
java.lang.Object
ro.isdc.wro.model.group.processor.Injector
public final class Injector
- extends Object
Injector scans some object fields and checks if a value can be provided to a field; Injector will ignore all non-null
fields.
- Author:
- Alex Objelean
Method Summary |
|
inject(T object)
Scans the object and inject the supported values into the fields having @Inject annotation present. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
inject
public <T> T inject(T object)
- Scans the object and inject the supported values into the fields having @Inject annotation present.
- Parameters:
object
- Object
which will be scanned for @Inject annotation presence.
- Returns:
- the injected object instance. Useful for fluent interface.
Copyright © 2008-2013. All Rights Reserved.