Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 2 (11.1.2.0.0)

E17486-01

oracle.adf.share.services
Interface ResourceServiceStrategy


public interface ResourceServiceStrategy

All service types packaged in a ADF Library jar must implement this method of type and instance discovery to expose the packaged components. For the strategy constructor you have 2 options: Either a default no argument constructor, or if you're interested in using the DescriptorContext before getResources then you can implement the constructor that takes a instance of the context. One reason might be if you plan to use the manifest or other metadata locations for display name overrides. Visibility data is not to be processed here. You must return all descriptors without filtering. That's done by the various display methods. For example: the resource catalog palette, the data control palette, etc.


Method Summary
 java.lang.String getDisplayName()
           
 javax.swing.Icon getIcon()
           
 java.util.Collection<URLDescriptor> getResources(DescriptorContext context)
           
 java.lang.String getType()
           
 boolean isBrowseable()
           
 

Method Detail

getResources

java.util.Collection<URLDescriptor> getResources(DescriptorContext context)
Parameters:
context - all pertinent info needed to constrain the request
Returns:
a collection of URLs along with descriptive information about each resource. They all must be located within the provider URL in the context.

getType

java.lang.String getType()
Returns:
the type name this strategy implements. This may be used as the "jndi name" when grouping resources underneath this strategy in DT.

getDisplayName

java.lang.String getDisplayName()
Returns:
the display name for this strategy. This may be used when grouping resources underneath this strategy in a design time environment.

getIcon

javax.swing.Icon getIcon()
Returns:
the icon for this strategy. This may be used when grouping resources underneath this strategy in a design time environment.

isBrowseable

boolean isBrowseable()
Returns:
true if resources from this strategy are meant to be displayed visually at design time.

Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 2 (11.1.2.0.0)

E17486-01

Copyright © 1997, 2011, Oracle. All rights reserved.