com.dat.cx
Interface CxResourceUser
- All Known Implementing Classes:
- CxResourceProperty, CxResourceProviderProperty
- public interface CxResourceUser
A Class implementing CxResourceUser is advertizing the need for a
implementation of the resource specified by the contract.
Method Summary |
java.lang.Object |
getResource()
Returns the Resource that implements the interface specified by the getResourceClass . |
java.lang.Class |
getResourceClass()
Returns the Class of an interface that specifies the a
resource. |
void |
setResourceProvider(CxResourceProvider provider)
Set the CxResourceProvider from which the needed
resource will be obtained. |
getResourceClass
public java.lang.Class getResourceClass()
- Returns the
Class
of an interface that specifies the a
resource.
setResourceProvider
public void setResourceProvider(CxResourceProvider provider)
- Set the
CxResourceProvider
from which the needed
resource will be obtained.
getResource
public java.lang.Object getResource()
- Returns the Resource that implements the interface specified by the
getResourceClass
.