Skip to content

Commit b9c9557

Browse files
committed
Issue#95 - Provide update of security provider elements
1 parent 94b499f commit b9c9557

File tree

5 files changed

+418
-371
lines changed

5 files changed

+418
-371
lines changed

core/src/main/python/wlsdeploy/tool/create/creator.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,17 @@ class Creator(object):
3131
"""
3232
__class_name = 'Creator'
3333

34-
def __init__(self, model, model_context, aliases):
35-
self.logger = PlatformLogger('wlsdeploy.create')
34+
def __init__(self, model, model_context, aliases, exception_type=ExceptionType.CREATE,
35+
logger=PlatformLogger('wlsdeploy.create')):
36+
37+
self.logger = logger
3638
self.aliases = aliases
37-
self.alias_helper = AliasHelper(self.aliases, self.logger, ExceptionType.CREATE)
38-
self.wlst_helper = WlstHelper(self.logger, ExceptionType.CREATE)
39+
self.alias_helper = AliasHelper(self.aliases, self.logger, exception_type)
40+
self.wlst_helper = WlstHelper(self.logger, exception_type)
3941
self.model = Model(model)
4042
self.model_context = model_context
4143
self.wls_helper = WebLogicHelper(self.logger)
42-
self.attribute_setter = AttributeSetter(self.aliases, self.logger, ExceptionType.CREATE)
44+
self.attribute_setter = AttributeSetter(self.aliases, self.logger, exception_type)
4345
# Must be initialized by the subclass since only it has
4446
# the knowledge required to compute the domain name.
4547
self.archive_helper = None

0 commit comments

Comments
 (0)