|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sourceforge.jpatterns.core.JPEngineImpl
public class JPEngineImpl
The concrete, JPatterns "default" implementation.
$Author:: zmicer $
| Field Summary | |
|---|---|
static org.apache.log4j.Logger |
LOG
Logger instance. |
| Constructor Summary | |
|---|---|
JPEngineImpl()
Default public constructor. |
|
| Method Summary | |
|---|---|
protected void |
checkIsInitialized()
Check if the instance of initialized. |
protected com.sourceforge.jpatterns.schema.CastorSectionType |
getCastorSectionType(String name,
String scope)
Get the castor section type using the provided input data |
JPConstants.EngineConfigCaregory |
getCategory()
|
protected JPatternsConfigsBean |
getCategoryJPatternsConfigsBean()
|
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. |
protected IJPFactory |
getPluginFactory()
Get factory is used for the retriving the plugin configurations |
void |
init(JPConstants.EngineConfigCaregory category)
Set the JPatterns engine category type - it could be consumer, framework related etc. |
boolean |
isInitialized()
|
protected void |
logAndThrow(String message)
Log the message and then throw it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.log4j.Logger LOG
| Constructor Detail |
|---|
public JPEngineImpl()
| Method Detail |
|---|
public void init(JPConstants.EngineConfigCaregory category)
IJPEngine
init in interface IJPEnginecategory - instance of JPConstants.EngineConfigCaregory, Can not be null (otherwise IllegalArgumentException would appear).IJPEngine.init(com.sourceforge.jpatterns.core.JPConstants.EngineConfigCaregory)public JPConstants.EngineConfigCaregory getCategory()
getCategory in interface IJPEngineIJPEngine.init(com.sourceforge.jpatterns.core.JPConstants.EngineConfigCaregory)public boolean isInitialized()
isInitialized in interface IJPEngineIJPEngine.isInitialized()
public IJPFactory getFactory(String factoryName,
String scope)
IJPEnginecom.sourceforge.jpatterns.core.JPConstants.DEFAULT_SCOPE_NAME)
getFactory in interface IJPEnginefactoryName - 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.
IJPEngine.getFactory(java.lang.String,java.lang.String)
public IJPattern getPattern(String patternName,
String scope)
IJPEnginecom.sourceforge.jpatterns.core.JPConstants.DEFAULT_SCOPE_NAME)
getPattern in interface IJPEnginepatternName - 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.
IJPEngine.getPattern(String,String)
public IJPConfig getConfig(String configName,
String scope)
IJPEngine
getConfig in interface IJPEngineconfigName - 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).
IJPEngine.getConfig(java.lang.String, java.lang.String)
protected com.sourceforge.jpatterns.schema.CastorSectionType getCastorSectionType(String name,
String scope)
name - the name of the section to be retrived, Can not be null (otherwise IllegalArgumentException would appear).scope - the name of the scope to be retrived, Can not be null (otherwise IllegalArgumentException would appear).
protected IJPFactory getPluginFactory()
protected JPatternsConfigsBean getCategoryJPatternsConfigsBean()
specific for the pointed categoryprotected void checkIsInitialized()
protected void logAndThrow(String message)
throws JPConfigException
message - the not emopty message to be thrown and logged
JPConfigException - always, using message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||