protected class IPojoFactory.RequiredHandler
extends java.lang.Object
implements java.lang.Comparable
| Constructor and Description |
|---|
RequiredHandler(java.lang.String name,
java.lang.String namespace)
Crates a Required Handler.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object object)
Start level Comparison.
|
boolean |
equals(java.lang.Object object)
Equals method.
|
HandlerFactory |
getFactory()
Gets the factory object used for this handler.
|
java.lang.String |
getFullName()
Gets the handler qualified name (
namespace:name). |
int |
getLevel() |
java.lang.String |
getName() |
java.lang.String |
getNamespace() |
org.osgi.framework.ServiceReference<? extends HandlerFactory> |
getReference() |
int |
hashCode()
Hashcode method.
|
void |
setReference(org.osgi.framework.ServiceReference<? extends HandlerFactory> ref)
Sets the service reference.
|
void |
unRef()
Releases the reference of the used factory.
|
public RequiredHandler(java.lang.String name,
java.lang.String namespace)
name - the handler name.namespace - the handler namespace.public boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - 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 java.lang.ObjectObject.hashCode()public HandlerFactory getFactory()
public java.lang.String getFullName()
namespace:name).public java.lang.String getName()
public java.lang.String getNamespace()
public org.osgi.framework.ServiceReference<? extends HandlerFactory> getReference()
public int getLevel()
public void unRef()
public void setReference(org.osgi.framework.ServiceReference<? extends HandlerFactory> 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(java.lang.Object object)
compareTo in interface java.lang.Comparableobject - the object on which compare.-1, 0, +1 according to the comparison of their start levels.Comparable.compareTo(java.lang.Object)Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.