|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Provider is an object responsible or loading and managing instances of a given type. The Provider is used by the Broker to look up objects on demand.
By implementing new Provider types and registering them with the broker via WebMacro.properties you can extend or change WebMacro's behavior.
Method Summary | |
void |
destroy()
Close down this provider, freeing any allocated resources. |
void |
flush()
Clear any cache this provider may be maintaining |
java.lang.Object |
get(java.lang.String query)
Get the object associated with the specified query |
java.lang.String |
getType()
Return an array representing the types this provider serves up |
void |
init(Broker b,
Settings config)
Initialize this provider based on the specified config. |
Method Detail |
public java.lang.String getType()
public void init(Broker b, Settings config) throws InitException
InitException
public void flush()
public void destroy()
public java.lang.Object get(java.lang.String query) throws ResourceException
ResourceException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |