org.apache.aries.blueprint.container
Class GenericType

java.lang.Object
  extended by org.osgi.service.blueprint.container.ReifiedType
      extended by org.apache.aries.blueprint.container.GenericType

public class GenericType
extends org.osgi.service.blueprint.container.ReifiedType

XXXX: Currently, in case of arrays getActualTypeArgument(0) returns something similar to what Class.getComponentType() does for arrays. I don't think this is quite right since getActualTypeArgument() should return the given parameterized type not the component type. Need to check this behavior with the spec.


Constructor Summary
GenericType(Class clazz, GenericType... parameters)
           
GenericType(Type type)
           
 
Method Summary
 boolean equals(Object object)
           
 org.osgi.service.blueprint.container.ReifiedType getActualTypeArgument(int i)
           
static GenericType parse(String rawType, Object loader)
           
 int size()
           
 String toString()
           
 
Methods inherited from class org.osgi.service.blueprint.container.ReifiedType
getRawClass
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericType

public GenericType(Type type)

GenericType

public GenericType(Class clazz,
                   GenericType... parameters)
Method Detail

parse

public static GenericType parse(String rawType,
                                Object loader)
                         throws ClassNotFoundException,
                                IllegalArgumentException
Throws:
ClassNotFoundException
IllegalArgumentException

getActualTypeArgument

public org.osgi.service.blueprint.container.ReifiedType getActualTypeArgument(int i)
Overrides:
getActualTypeArgument in class org.osgi.service.blueprint.container.ReifiedType

size

public int size()
Overrides:
size in class org.osgi.service.blueprint.container.ReifiedType

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object object)
Overrides:
equals in class Object


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.