ro.isdc.wro.model.group.processor
Class Injector

java.lang.Object
  extended by 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
<T> T
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
 

Method Detail

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.