|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.IPojoFactory.RequiredHandler
protected class IPojoFactory.RequiredHandler
Structure storing required handlers. Access to this class must mostly be with the lock on the factory. (except to access final fields)
Constructor Summary | |
---|---|
IPojoFactory.RequiredHandler(String name,
String namespace)
Crates a Required Handler. |
Method Summary | |
---|---|
int |
compareTo(Object object)
Start level Comparison. |
boolean |
equals(Object object)
Equals method. |
HandlerFactory |
getFactory()
Gets the factory object used for this handler. |
String |
getFullName()
Gets the handler qualified name ( namespace:name ). |
int |
getLevel()
|
String |
getName()
|
String |
getNamespace()
|
ServiceReference |
getReference()
|
int |
hashCode()
Hashcode method. |
void |
setReference(ServiceReference ref)
Sets the service reference. |
void |
unRef()
Releases the reference of the used factory. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IPojoFactory.RequiredHandler(String name, String namespace)
name
- the handler name.namespace
- the handler namespace.Method Detail |
---|
public boolean equals(Object object)
equals
in class Object
object
- the object to compare to the current object.
true
if the two compared object are equalsObject.equals(java.lang.Object)
public int hashCode()
Object.hashCode()
.
hashCode
in class Object
Object.hashCode()
public HandlerFactory getFactory()
public String getFullName()
namespace:name
).
public String getName()
public String getNamespace()
public ServiceReference getReference()
public int getLevel()
public void unRef()
public void setReference(ServiceReference ref)
null
, it ungets the used factory (if already get).
This method is called with the lock on the current factory.
ref
- the new service reference.public int compareTo(Object object)
compareTo
in interface Comparable
object
- the object on which compare.
-1
, 0
, +1
according to the comparison of their start levels.Comparable.compareTo(java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |