NetKernel APIs


com.ten60.netkernel.urii.representation
Class SimpleRepresentationImpl

java.lang.Object
  extended bycom.ten60.netkernel.urii.representation.SimpleRepresentationImpl
All Implemented Interfaces:
IURAspect, IURRepresentation
Direct Known Subclasses:
AccessorImpl, ComponentImpl, FileResourceRepresentation, ModuleResourceExpiryRepresentation, ModuleResourceRepresentation

public abstract class SimpleRepresentationImpl
extends Object
implements IURRepresentation, IURAspect

Implementation of a Representation where the interface implementor is the Representation class itself- this has the problem that creating a mirror of this representation will stop this representation from being GCed so only realy useful in limited cases

See Also:
com.ten60.netkernel.component.ComponentImpl

Field Summary
protected  IURMeta mMeta
           
 
Constructor Summary
SimpleRepresentationImpl(IURMeta aMeta)
          Construct a new SimpleRepresentationImpl with the given meta
 
Method Summary
 IURAspect getAspect(Class aAspectClass)
          Representation only exibits interfaces on the representation itself
 Collection getAspects()
          Representation only exibits interfaces on the representation itself
 IURMeta getMeta()
          Return the meta for this representation
 boolean hasAspect(Class aAspectClass)
          Representation only exibits interfaces on the representation itself
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mMeta

protected IURMeta mMeta
Constructor Detail

SimpleRepresentationImpl

public SimpleRepresentationImpl(IURMeta aMeta)
Construct a new SimpleRepresentationImpl with the given meta

Method Detail

getMeta

public IURMeta getMeta()
Description copied from interface: IURRepresentation
Return the meta for this representation

Specified by:
getMeta in interface IURRepresentation
Returns:
the meta for this representation

hasAspect

public final boolean hasAspect(Class aAspectClass)
Representation only exibits interfaces on the representation itself

Specified by:
hasAspect in interface IURRepresentation
Parameters:
aAspectClass - a IURAspect class object for an aspect to test for
Returns:
true if any of the aspects which this representation holds implement the given interface

getAspect

public final IURAspect getAspect(Class aAspectClass)
Representation only exibits interfaces on the representation itself

Specified by:
getAspect in interface IURRepresentation
Returns:
the aspect, null if none is found

getAspects

public final Collection getAspects()
Representation only exibits interfaces on the representation itself

Specified by:
getAspects in interface IURRepresentation

NetKernel APIs


Copyright © 2002-2004 1060 Research Ltd. All Rights Reserved.