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

Constructor Summary
Injector(WroManager wroManager)
          Creates the Injector and initialize the provided manager.
 
Method Summary
 void inject(Object 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
 

Constructor Detail

Injector

public Injector(WroManager wroManager)
Creates the Injector and initialize the provided manager.

Method Detail

inject

public void inject(Object 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.


Copyright © 2008-2011. All Rights Reserved.