|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IJPEngine
It is an entry point for all the operations with JPatterns framework from the side of the consumer of this framework. This interface
defines the methods which would be useful for working with the JPattern. Usually only this class would be used. The implementation of
this interface could be customized (study appropriate documentation on the customization).
The methods are represented here would return the implementations of the certain patterns:
e.g. IFactory
, IChain
etc. Also they could return some additional stuff.
Please access this functionality using JPEngineFactory
- it is the only entry point for working
with implementations of IJPEngine
interface.
All the stuff of the JPatterns configuration would be initialized at the static initialization so just access this class trough the
appropriate factory.
todo [zmicer]: method for the global configuration to be put here.
note [zmicer]: be noticed this interface and the implementation are used for both consumer and framework specific operations.
Method Summary | |
---|---|
JPConstants.EngineConfigCaregory |
getCategory()
|
IJPConfig |
getConfig(String configName,
String scope)
Get the config pattern |
IJPFactory |
getFactory(String factoryName,
String scope)
Get the IJPFactory using the provided name and the scope. |
IJPattern |
getPattern(String patternName,
String scope)
Get the IJPattern using the provided name and the scope. |
void |
init(JPConstants.EngineConfigCaregory category)
Set the JPatterns engine category type - it could be consumer, framework related etc. |
boolean |
isInitialized()
|
Method Detail |
---|
void init(JPConstants.EngineConfigCaregory category)
category
- instance of JPConstants.EngineConfigCaregory, Can not be null (otherwise IllegalArgumentException
would appear).JPConstants.EngineConfigCaregory getCategory()
boolean isInitialized()
IJPFactory getFactory(String factoryName, String scope)
com.sourceforge.jpatterns.core.JPConstants.DEFAULT_SCOPE_NAME
)
factoryName
- the name of the factory to be retrieved.
Can not be null (otherwise IllegalArgumentException
would appear).scope
- scope name to be used for the retrieving of the appropriate factory. Could be null, in the case the default scope
would be used.
IJPattern getPattern(String patternName, String scope)
com.sourceforge.jpatterns.core.JPConstants.DEFAULT_SCOPE_NAME
)
patternName
- the name of the pattern to be retrieved.
Can not be null (otherwise IllegalArgumentException
would appear).scope
- scope name to be used for the retrieving of the appropriate pattern. Could be null, in the case the default scope
would be used.
IJPConfig getConfig(String configName, String scope)
configName
- the name of the config pattern, Can not be null (otherwise IllegalArgumentException
would appear).scope
- the name of the config scope, Can not be null (otherwise IllegalArgumentException
would appear).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |