org.apache.felix.ipojo.handlers.dependency
Class ServiceUsage.Usage

java.lang.Object
  extended by org.apache.felix.ipojo.handlers.dependency.ServiceUsage.Usage
Enclosing class:
ServiceUsage

public static class ServiceUsage.Usage
extends java.lang.Object

Structure contained in the Thread Local.


Field Summary
(package private)  int m_componentStack
          Tracks the number of component method called in the current thread.
(package private)  java.lang.Object m_object
          Object to inject.
(package private)  int m_stack
          Stack Size.
 
Constructor Summary
ServiceUsage.Usage()
           
 
Method Summary
 void clear()
          Clear the service object array.
 boolean dec()
          Decrement the stack level.
 boolean decComponentStack()
          Decrement the component stack level.
 void inc()
          Increment the stack level from the first service get.
 void incComponentStack()
          Increment the component stack level.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_stack

int m_stack
Stack Size.


m_object

java.lang.Object m_object
Object to inject.


m_componentStack

int m_componentStack
Tracks the number of component method called in the current thread.

Constructor Detail

ServiceUsage.Usage

public ServiceUsage.Usage()
Method Detail

inc

public void inc()
Increment the stack level from the first service get.


incComponentStack

public void incComponentStack()
Increment the component stack level.


dec

public boolean dec()
Decrement the stack level.

Returns:
true if the stack is 0 after the decrement.

decComponentStack

public boolean decComponentStack()
Decrement the component stack level.

Returns:
true if the stack is 0 after the decrement.

clear

public void clear()
Clear the service object array.



Copyright © 2006-2010 The Apache Software Foundation. All Rights Reserved.